Forums

I can't get file upload to work

spacedog3k 26 Feb, 2009
I have tried this out in 3.0 stable and 3.1 RC2 but I can get files to upload or submitted in emails.

The strange thing is that when I first set this up with 3.0 it seemed to send images (the files I am uploading) fine but I upgraded to 3.1RC2 to get the edit form wizard and not uploads don't work. in either version.

I have uninstalledversions before I installed a new version and I have recreated the forms from scratch each time. The form submits fine and I receive the email with all the other form data but no images. There are no files in the uploads folder or in the tmp folder in Joomla.

Is there anything obvious I am missing? I looked in the forums but couldn't find any relevant info.

Thanks,

- Craig
GreyHead 26 Feb, 2009
Hi Craig,

Most likely you don't have enctype="multipart/form-data" in the Form Tag Attachment box in the General Tab.

There's a Tutorial in the Downloads area here that covers that and a few more possibilities.

Bob
spacedog3k 27 Feb, 2009
No joy.

Currently I am trying this in 3.1 RC2.

As you suggested I added
enctype="multipart/form-data"
to the Form Tag Attachment box. Still nothing.

No files uploaded or emailed. I have set the permissions on the upload folder and the subfolder for this form to 775 is that good enough (though 777 didn't work either)?

Looked at the tutorial in the downloads section and it wasn't much help.

My form code is:

<div class="form_item">
  <div class="form_element cf_fileupload">
    <label class="cf_label">Upload Image</label>
    <input class="cf_fileinput" size="20" id="file_6" name="file_6" type="file" />
    
  </div>
  <div class="clear"> </div>
</div>


In file uploads I have uploads set to "Yes" with the following:
file_6:jpg|gif|png{7120-2000}

(trying to upload a 3.4MB jpg so this is within spec)

In my PHP Info file, file_uploads is set to "yes" and the upload_max_filesize is set to "100M"

Any other help? Currently the form is hidden on the site because I don't want people to use it, but I can set up a login and PM you the details if you want to view the site itself.
GreyHead 27 Feb, 2009
Hi Craig,

Everything looks good. Try 755 for the permissions and check the server log for more clues please.

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