We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Error when submitting entry containing native file field

Developer Preview

Electric Putty's avatar
Electric Putty
88 posts
13 years ago
Electric Putty's avatar Electric Putty

When you submit an entry containing a native file field you receive the following error:

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: field_name

Filename: file/ft.file.php

Line Number: 54

ExpressionEngine: v2.5.0 Build: date 20120413

       
Wouter Vervloet's avatar
Wouter Vervloet
758 posts
13 years ago
Wouter Vervloet's avatar Wouter Vervloet

Getting this same error.

Small error on line 54 of ‘~/fieldtypes/file/ft.file.php’:

$directory = $this->EE->input->post($field_name.'_hidden_dir');

Should be:

$directory = $this->EE->input->post($this->field_name.'_hidden_dir');

v2.5.0 - Build: date 20120413

– Wouter

       
Robzor's avatar
Robzor
86 posts
13 years ago
Robzor's avatar Robzor

Any update on this one?

       
Wouter Vervloet's avatar
Wouter Vervloet
758 posts
13 years ago
Wouter Vervloet's avatar Wouter Vervloet

I guess it will probably be fixed in the next preview or the public release.

       
Wes Baker's avatar
Wes Baker
343 posts
13 years ago
Wes Baker's avatar Wes Baker

Just following up with you two: it looks like it’s been fixed in the code. I’m not sure why it ever was the other way around.

Wes

       
Electric Putty's avatar
Electric Putty
88 posts
13 years ago
Electric Putty's avatar Electric Putty

Cool, thanks Wes

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.