Hi, installed configured EE 1.6.3, no problems at all EXCEPT when I try to upload an file from the Publish tab. I get the “You did not select a file to upload” error after I select a file and try to upload. Any suggestions where to look to resolve this? PHP safe_mode is on, is that an issue?
I wouldn’t think safe_mode would cause that particular message- but do you have the ability to turn it off? If so, try it real quick while I take a closer look at the code.
Tried safe_mode = Off. That didn’t work and isn’t really an option anyway as turning it on is our standard setting. This is the second installation of EE on the same server and neither one would allow an upload w/ same error.
You click in the field which will contain the URL of the uploaded file or photo,
then click the Upload File button—this pops up a window that allows you to
select the file or photo to be uploaded. Where is the procedure failing?
1. Hit Upload File on Publish > New Entry page
2. Browse to local file (jpg)
3. Leave destination directory as default (Main Upload Directory--which has been chmod’ed to 777)
4. Hit upload button, Error page displayed with “You did not select a file to upload”
Looking at the code- it’s just not able to upload to the temp directory. Only way you’d get that message doing what you’re doing. Do you know if there are any open_base restrictions. Are you running php as a cgi process? And can you let me know the php version you’re running on?
No- should be above root and a default defined by the system. Hm- ok, thanks for clarification. Do you mind sending me over backend login info so I can replicate on your site? If that’s good- pm me url, username and password- preferably superadmin level. Want to just try it real quick.
Hm- hang tight while I get back to the crew on this one. That was their last suggestion- see if “that form is getting cached in some weird way in a network or local cache (not EE).”
Do you have anyone on a different ISP/outside the network that could do a quick test for you. See if they replicate?
“PHP Notice: Undefined index: userfile in /usr/local/www/htdocs/blog/tnc/core/core.upload.php on line 95, referer: http://homedev.tnc/blog/tnc/index.php?S=54046595146a6eee306cbd48ef0cfddeb60dd62b&C=publish&M=file_upload_form&field_group=1&Z=1”
Aaaah! That’s it! In php.ini I had to set file_uploads = On, and upload_tmp_dir = [nothing so it uses server tmp folder]. Now I have to run the new settings by our sys admins and I’ll be good to go.
Thanks a million guys, that was truly a pleasurable support experience. I got 2 problems solved in one day. Thanks!