Can't submit 'required' file using the 'file' field type
Stol - August 24, 2006 - 13:04
| Project: | Flexinode |
| Version: | 4.7.x-1.x-dev |
| Component: | Field type: file |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
When I try to submit a file using the flexinode file field I get the message "[this] field is required". It looks like the module can't read out the value in the submitted field and thinks it's empty. This happens both with old and newly created content types.
I tested another flexinode field (URL) and that worked.
I'm using IIS 5.1 and PHP 5. I also have the patched version of flexinode (flexinode_5.module).
P.S. When I changed the file field to 'not required' then I could submit the node (but not the file of course).

#1
Exactly the same problem here. Any ideas?
#2
Following issues are the same as this issue:
http://drupal.org/node/80983
http://drupal.org/node/71527
If the upload module can upload files why not flexinode ? i.e. the bug mentioned here is just a disfunctionality in reading out the value that should be posted in the file input field. The error is thrown in form_validate() in form.inc because
if ($elements['#required'] && empty($elements['#value']) && $elements['#value'] !== '0')
returns true;
#3
I'm closing this issue because noboby seems interested anymore in the flexinode module and are migrating to CCK. A field for uploading files with CCK is coming soon.
http://drupal.org/project/filefield
#4
don't close a flexinode issue because CCK will have a solution in future.
#5
The time needed until someone mentioned this issue was closed, says a lot about the time it will take until this issue will be resolved.
#6
So? Where were you? Did you solve the issue? no? then why tell others they are working slow, you re not working faster.. ? ;)
#7
You know that some aspects of the issue can't be resolved unless the Forms API changes so that the required attribute can be used with the file type again. Forms API
You're right that I didn't solve the issue but you're wrong when you say that I'm accusing people that they are working slow. Nobody is working on this issue so it's not a matter of being slow or fast. If I knew in September last year that I could assign myself to this issue I would have done it.
I liked Flexinode which was the main reason why I started this issue.
#8
FWIW: http://drupal.org/node/59750 is the issue for core.
@Stol: I thought you were telling that we did not work hard enough to get issues like this solved! With your last explanation I finally unerstand what you meant: 'that this issue is really hard to solve'. It is.
#9
@Bèr: Peace man! You can always contact me for help (testing, debugging, ..)
Stol
#10
#11
#12
#13
I posted a workaround here:
http://drupal.org/node/302138#comment-1497550