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

exp - August 24, 2006 - 18:51
Priority:normal» critical

Exactly the same problem here. Any ideas?

#2

Stol - August 31, 2006 - 12:28

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

Stol - September 4, 2006 - 08:47
Status:active» closed

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

Bèr Kessels - December 28, 2006 - 12:26
Status:closed» active

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

#5

Stol - January 10, 2007 - 14:06

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

Bèr Kessels - January 10, 2007 - 16:55

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

#7

Stol - January 11, 2007 - 08:40

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

Bèr Kessels - January 11, 2007 - 09:23

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

Stol - January 11, 2007 - 13:27

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

Stol

#10

Bèr Kessels - January 27, 2007 - 14:53
Title:Can't submit a file using the 'file' field type» Can't submit 'required' file using the 'file' field type

#11

Bèr Kessels - January 27, 2007 - 14:59
Priority:critical» normal

#12

Bèr Kessels - January 27, 2007 - 15:00
Category:bug report» feature request

#13

kees@qrios - April 20, 2009 - 15:22

I posted a workaround here:
http://drupal.org/node/302138#comment-1497550

 
 

Drupal is a registered trademark of Dries Buytaert.