Upload creates a folder but no file
-
Evening all. I am trying to allow files to be uploaded, the form is validating correctly, email is being generated, and if I delete the default folder, it will re-create with the correct permissions, but not upload the file.
I am testing using a small jpg, and the form looks like this;
<p>Your Email (required)
[email* your-email] </p>
<p>File[file* file-602 filetypes:doc|docx|pdf|jpg|gif|zip|jpg|indd|ai limit:2000mb] </p><p>[submit “Send”]</p>On submit, I get the thanks, but file is uploaded. Nothing in the apache error logs, but the odd thing is the upload folder looks like this;
drwx-wx-wx 2 www-data www-data 4096 Aug 6 19:45 wpcf7_uploadsSo permissions are fine, and it has the date / time the form was submitted. If I delete that folder, it will re-create.
I wish to have the files stored there, not emailed due to the size, so I hope it’s just not using that as a temp storage, but any help is appreciated as I am sure it’s something simple. On the plugin site it does say “This folder is created automatically, but sometimes it can fail. The most possible reason for this is that the parent folder doesn’t have sufficient writing permissions. In such cases, you can change the permissions or create a folder manually.” but also mentions it being a temp folder, so if that is the case, can I simply say don’t delete after upload?
Thanks
- The topic ‘Upload creates a folder but no file’ is closed to new replies.