Upload File (option Document - File name from ScriptCase) Failed

I created simple form which has four fields, one of them is CV which has to be Document where the user can upload his CV. When created the field, Document (File Name) from Scriptcase option Data Type, the option create subfolder is checked to YES (in case it does not exists) , but when trying to upload file there is an Error “Fields with errors:File (upload failed)” ? In the database, field is created Varchar(255).

Re: Upload File (option Document - File name from ScriptCase) Failed

I tried it, and it worked fine for me. I entered a non-existing subfolder name (without slashes) and create subfolder set to yes. The document is uploaded to the new subfolder and the filename is stored in the database.

Did you check the Form->application->settings->document path?
Is the subfolder created? with the right permissions?

Re: Upload File (option Document - File name from ScriptCase) Failed

Upload is OK now, it was about privileges, but it is confusing about browsing files. When User browse for a file the field keeps value with the path from where file is selected and after 1-2 seconds it is empty, with check box Delete this file. It is not clear if there is any file or not. Why this field is emptied by it self?

Re: Upload File (option Document - File name from ScriptCase) Failed

You’re right in that the filename disappears. But next to the delete checkbox should be a hyperlink to the uploaded file. Strange thing is though, that this link only appears after reloading the application!

Don’t you see this link to the uploaded file, even not after reloading application?

If not, you should contact support by logging a support ticket.

Re: Upload File (option Document - File name from ScriptCase) Failed

Yes, the filename disappears and there is really no good indication that everything ok until you save the record and do an refresh on it, then you see the link.

I wonder if there is someway to get the link to show when it’s done uploading file, or whatever it’s actually doing at that point.

It looks really weird right now and it’s hard to tell that it’s done, especially if the file you’re uploading is >1mb in size.

Re: Upload File (option Document - File name from ScriptCase) Failed

Hi,

In a form with Document field works fine when the file is selected and it is copied to server, but when the file is almost 5Mb doesn’t work and doesn’t show any error. Should I consider some event or condition to fix this.

Regards,

Re: Upload File (option Document - File name from ScriptCase) Failed

Hi,

Even though your not getting an error, I would put money on it being an error, either timeout or more likely

upload_max_filesize

If you create a file in an accessable location called phpinfo.php and put in it

<?
phpinfo();
?>

The browse to the files and search for upload_max_filesizem I’d expect it to be below 5M

Hope this helps

Mike

Re: Upload File (option Document - File name from ScriptCase) Failed

Other options to consider as well in php.ini

memory_limit
post_max_size

Regards,
Scott.

Re: Upload File (option Document - File name from ScriptCase) Failed

Hi,

That’s right, I’ve checked this variables upload_max_filesize, memory_limit, post_max_size and max_execution_time
and now works fine

Thanks

Re: Upload File (option Document - File name from ScriptCase) Failed

Anyone figure out a fix for this?

Dave

Re: Upload File (option Document - File name from ScriptCase) Failed

I was having the same problem. I switched off the “use ajax” in the form->settings and it helped for me.

Re: Upload File (option Document - File name from ScriptCase) Failed

Thanks, I’ll try that!

In a form with Document field works fine when the file is selected and it is copied to server, nut i cant catch the file name to save in a field on database.

Please help me. Some idea?