Hello,
I have a problem with webform module and my site :(
When I add form field with image upload, fotos are uploaded but when I check submissions there are empty places, only I can find this foto in FTP in path sites/all/webform/

When I add required filed, so user can not go to the next page break
I choose file, format and weight is correct, I click upload a file, looks that is upladed
s

I try to go to the next page break but it is impossible because appears a notce that this field is required and is empty...
s

I try to do in another webform created, without page breaks and another fields, but issue is the same.
Thank you in advance for help.

CommentFileSizeAuthor
2.PNG10.22 KBkazaa
1.PNG8.31 KBkazaa
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kazaa created an issue. See original summary.

kazaa’s picture

Issue summary: View changes
kazaa’s picture

any ideas for this issue???

katasun’s picture

confirm this issue.

Katasun

katasun’s picture

katasun’s picture

if you log in as an administrator, the function works and the files will be shown in the form.

For testing, I gave full permission to the guest role. But this was not working.

Can anyone tell me how to debug this topic. I don't any error messages and I used a vanilla drupal installation, but i still can't describe what causes this problem. It seem to be related with the permissions.

Katasun

katasun’s picture

If you have a webform with a file field and the form is displayed to anonymous users.

1. case - you upload your file using the upload button after you choosed the file. Then the file will not be displayed in the result page.

2. case - you choose the file and upload with the send button, normally at the end of the form. Then the file will be displayed in the result form.

3. I created a file field in the page content-type ( the standard content type ) and did the same test. Uploading with the file upload button and uploading with the form send button. In both cases its working.

Can anyone explain the difference between the two methods? It looks like that the webform works different from the other forms.

Regards katasun

katasun’s picture

This effect only appears if you activate another language than english! Thats why the original post is in polish and its hard to find the error if you run your site in english, because it doesn't show up the error.

Regards Katasun

kazaa’s picture

It is not depend on language, in another drupal site in my server I don't have this issue. If you want to reproduce plase go to my site:
http://vidicon.nazwa.pl/brodnica/zgloszenie_firmy

please fill fields with* and after upload photo in last field and try to go to next step. It will be not possible but I will have this image on my server in /sites/default/files/webform/...

BTW I try to create a another simple form with image upload field and the same issue occurs, permission I set the same as in other site where webform works properly

kazaa’s picture

Hello, any ideas ?? I want to lunch my project but this case is blocking me :(

kazaa’s picture

I still have problem with this, I try to change jquery, user permissions etc. nothing change :/ it's strange because in the same server in another test website everything works...

Webform does not remember about saved image,not transfer only information because image is saved in my ftp...

lu_smithcon’s picture

I'm having a similar problem but I am beginning to think the problem may be Drupal core. I'm using Drupal 7.43 and Webform 3.24 and the problem is with a file field not and image field. I just tried case #2 of #7 and it works. If an anonymous user browses and selects a file and submits the form without hitting the upload button the file will show in the results. My problem didn't start until I updated to Drupal 7.43.

Welsby’s picture

Have noticed the same issue on some of our production sites, since the drupal core update users who are not logged in are able to upload the file and submit the form. but the file is missing from the submission data, and is marked as temporary in the file table.

The file itself is uploaded to the private folder specified, suspect it won't stay in here once the temporary timeout has expired.

Suspect the cause is the drupal core modification to the $force_default behavior in latest release, as technically the user wouldn't have file_download_access which will change this to TRUE in this release.

lu_smithcon’s picture

@Welsby, I was having same problem with file component. If you haven't already found them, look at issues 2675170 and 2678822 for answers.

DanChadwick’s picture

Status: Active » Closed (works as designed)

Closing as this seems to be a core issue.

kazaa’s picture

Status: Closed (works as designed) » Needs review
kazaa’s picture

I update to drupal 7.44 and issue still occurs, so please change description what this module only works with old drupal revision, for example 7.42. Maybe you should review this module because it seems that will be not work with next versions.

BTW I updated site which works fine with drupalform to drupal 7.44 (previous 7.41) and suddenly issue occurs with 'File photo is required' after uploade image... so this case is related to drupal version. Currently does not work image upload with Drupal 7.43 and later revisions...

DanChadwick’s picture

Status: Needs review » Closed (works as designed)

7.44 is a security release. 7.50 will be released on July 7, 2016. Unless it can be shown that this is a bug within webform itself, we should probably fix this elsewhere.

kazaa’s picture

I can confirm that works in 7.50, thank you !