You did not select a file to upload
Posted: 10 June 2008 09:35 AM   [ Ignore ]  
Summer Student
Total Posts:  24
Joined  06-05-2008

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?

Thanks.

Profile
 
 
Posted: 10 June 2008 09:38 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23485
Joined  05-20-2002

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.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 10 June 2008 09:43 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  24
Joined  06-05-2008

Wow, that was fast!

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.

Profile
 
 
Posted: 11 June 2008 07:14 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
RankRank
Total Posts:  131
Joined  04-02-2006

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?

Profile
 
 
Posted: 11 June 2008 07:30 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  24
Joined  06-05-2008

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”

Profile
 
 
Posted: 11 June 2008 09:27 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23485
Joined  05-20-2002

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?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 11 June 2008 09:37 AM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  24
Joined  06-05-2008

> 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.

Where is the ‘temp directory’ defined?  Do I have to chmod that?

> Do you know if there are any open_base restrictions. 

open_basedir   no value (default = no restrictions)

> Are you running php as a cgi process? 

No.  Uh..don’t think so, how can I tell?

>  And can you let me know the php version you’re running on?

5.2.5

Profile
 
 
Posted: 11 June 2008 10:04 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23485
Joined  05-20-2002

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.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 11 June 2008 10:07 AM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  24
Joined  06-05-2008

Sorry, we have pretty strict security restrictions and this is for an internal site.  What else can I do?

Profile
 
 
Posted: 11 June 2008 10:12 AM   [ Ignore ]   [ # 9 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23485
Joined  05-20-2002

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?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 11 June 2008 10:16 AM   [ Ignore ]   [ # 10 ]  
Summer Student
Total Posts:  24
Joined  06-05-2008

what I’ll do is install it on my local machine and see if I run into the same problem…

Profile
 
 
Posted: 11 June 2008 10:57 AM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  24
Joined  06-05-2008

Yep, the upload works on my local machine….hmmmm.. not sure what the difference is as the configs are nearly identical..

Profile
 
 
Posted: 11 June 2008 12:26 PM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32773
Joined  05-14-2004

Are you able to look at your server err or logs to see if any information has been recorded there about this?

Also, would you be amenable to creating, just in the back-end, a quick gallery and seeing if you can upload there?

 Signature 
Profile
MSG
 
 
Posted: 11 June 2008 12:33 PM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  24
Joined  06-05-2008

Here is the apache error:

“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”

sorry didn’t post this before!

Profile
 
 
Posted: 11 June 2008 12:41 PM   [ Ignore ]   [ # 14 ]  
Summer Student
Total Posts:  24
Joined  06-05-2008

Created Photo Gallery and tried to upload after chmod’ing 777 the gallery directory and got the same error as above.

By the way, appreciate all the help guys! This is really happening support.

Profile
 
 
Posted: 11 June 2008 12:54 PM   [ Ignore ]   [ # 15 ]  
Lab Assistant
RankRank
Total Posts:  131
Joined  04-02-2006

Could it be a temporary directory permissions issue, cf. http://php.net/features.file-upload

Profile
 
 
Posted: 11 June 2008 01:20 PM   [ Ignore ]   [ # 16 ]  
Summer Student
Total Posts:  24
Joined  06-05-2008

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!

Profile
 
 
Posted: 11 June 2008 01:26 PM   [ Ignore ]   [ # 17 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15161
Joined  05-15-2004

Glad to hear it! Marking that one as “solved”, then. Come back any time smile
PS: And KeithW thanks for very much for the assist, we appreciate it a lot.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64515 Total Logged-in Users: 17
Total Topics: 81075 Total Anonymous Users: 8
Total Replies: 436311 Total Guests: 132
Total Posts: 517386    
Members ( View Memberlist )