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).

Comments

exp’s picture

Priority: Normal » Critical

Exactly the same problem here. Any ideas?

Stol’s picture

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;

Stol’s picture

Status: Active » Closed (fixed)

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

Bèr Kessels’s picture

Status: Closed (fixed) » Active

don't close a flexinode issue because CCK will have a solution in future.

Stol’s picture

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.

Bèr Kessels’s picture

So? Where were you? Did you solve the issue? no? then why tell others they are working slow, you re not working faster.. ? ;)

Stol’s picture

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.

Bèr Kessels’s picture

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.

Stol’s picture

@Bèr: Peace man! You can always contact me for help (testing, debugging, ..)

Stol

Bèr Kessels’s picture

Title: Can't submit a file using the 'file' field type » Can't submit 'required' file using the 'file' field type
Bèr Kessels’s picture

Priority: Critical » Normal
Bèr Kessels’s picture

Category: bug » feature
keesje’s picture