Upload file problems

lvizca 07 Oct, 2011
Hello,

We have been trying to upload some files but have been unable to do so. We have tried to upload pdf, mp4 and zip files but none are working even though when we upload a jpg file it works fine.

Also in a somewhat unrelated note, is there any way that we can store the upload path into a database when the upload is completed?
GreyHead 08 Oct, 2011
Hi lvizca ,

What are your file upload settings?

Yes you can save the upload path into the database. I think that it is saved in $form->files['path'] though I'm not sure if this includes the file name.

If you use my custom Upload Files [GH] action then both the file path and the file url are added to the form data.

Bob
lvizca 10 Oct, 2011
Hey,

Using the Upload Files [GH] action, the settings are:
Enabled: Yes
Files: upload:mp4-jpg-png-pdf-zip
Upload Path: blank (default)
File Name: {name}
Max size in KB: 30000

The following form is used:
textbox: name
file upload: video
submit

This is a form that was created just to try out the upload functionality. On the Form Methos option we have tried File and Post. Also in Form tag attachment we have enctype="multipart/form-data".


Thank you so much for the info on saving the path to the database.
GreyHead 10 Oct, 2011
Hi lvizca ,

If the name of the file upload input is 'video' then the File setting needs to be
Files: video:mp4-jpg-png-pdf-zip

Bob
This topic is locked and no more replies can be posted.