Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [Error Message] Uploading Avatars: The file upload failed. Please choose a valid file and try again.
#11
Not Solved
Try using this script and see which error you get. (This was made previously for a separate issue). That may shed some more light on the issue Smile

Try setting the admin_value without the trailing slash too, can never remember whether you need it or not Toungue


Attached Files
.php   uploadtest.php (Size: 2.07 KB / Downloads: 165)
Thanks, Polarbear541
#12
Not Solved
^^^ I remember I faced same issue in your case at my site Polarbear, and I did set your avatar running SQL query. It happened only once for your case and never happened again.

Even now if I try to apply particularly your provided avatar url (which is basically a .php) I still get error.
#13
Not Solved
(2013-07-12, 11:38 AM)Polarbear541 Wrote: Try using this script and see which error you get. (This was made previously for a separate issue). That may shed some more light on the issue Smile

Try setting the admin_value without the trailing slash too, can never remember whether you need it or not Toungue

No errors, but output anyways:

Quote:Upload filename: myimage.jpg
Upload type: image/jpeg
Upload temp name: /tmp/phprqRlsx
Upload error code: 0
Upload size: 58950

It should say /home/tmp though, I swear I moved the php locations to it. Perhaps just not PHP? How would I check that? The reason why we had to move to /home/tmp instead was of the directory had limited space.
#14
Not Solved
Actually I've just realized I misread one of your previous posts.

(2013-07-12, 06:09 AM)kdevs Wrote: in php.ini I changed to:

php_value upload_tmp_dir "/home/tmp/"

Putting that in your php.ini won't help, that would only work in a htaccess file. You'd need to find this:
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://php.net/upload-tmp-dir
;upload_tmp_dir =
in your php.ini and uncomment it (remove the semi-colon) and then enter /home/tmp in there. Smile
Thanks, Polarbear541
#15
Not Solved
(2013-07-12, 05:42 PM)Polarbear541 Wrote: Actually I've just realized I misread one of your previous posts.

(2013-07-12, 06:09 AM)kdevs Wrote: in php.ini I changed to:

php_value upload_tmp_dir "/home/tmp/"

Putting that in your php.ini won't help, that would only work in a htaccess file. You'd need to find this:
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://php.net/upload-tmp-dir
;upload_tmp_dir =
in your php.ini and uncomment it (remove the semi-colon) and then enter /home/tmp in there. Smile

Alright, did that. restarted apache. Same results. Sad

You okay with taking this into a PM, maybe you could help me a bit more with some information?
#16
Not Solved
Sure go ahead Smile
Thanks, Polarbear541
#17
Not Solved
I'd like to also add that this sometimes work and doesn't work. Users can upload if they keep trying.


Forum Jump:


Users browsing this thread: 1 Guest(s)