Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 Nov 2007, 15:29
jessej jessej is offline
 
Join Date: Jun 2006
Upload of file failed.

THIS IS POSTED AT vBulletin.com, and I have a support ticket opened, but the problem is illusive.. Any help or guidance is GREATLY appreciated!, thank you, jessej.
------------------------------------------------------------------------------------------------------------------

Many of my moderators (and now me too) have been getting this error, "Upload of file failed" when trying to upload files. These people were able to upload files before. Some are large files and some are small.

Over the last few months this problem went from one mod to 2, now to all. All of the user group options are correct.

I use the file system, and place the files in a file on my server. This has worked fine for a while also in the past. I have recently switched to a dedicated server, but this problem started on the shared server several weeks ago.

I went to the forums and searched and found this thread;
http://www.vbulletin.com/forum/showt...load+file+fail ed

I am hoping I can get the same analysis from you all on my system. I did enable phpinfo, and ran the upload diagnostics, and all showed ok.

I changed the "upload max file size" from 2mb to 8mb on the server.

I have made certain that attachment (file system file for attachments) is set to chmod777.

The comments from moderators when trying to upload files are;

"Well I tried again this morning...no go. Now instead of "upload failed" or "invalid file" it says what I posted yesterday..."not a post valid link, notify the administrator".

vBulletin Message
Invalid Post specified. If you followed a valid link, please notify the administrator


Upload of file failed. "
---------------------------

I have a support ticket opened on this. Any help is really appreciated.

I'm wondering if it can be something to do with using a file to store the attachments. Maybe I should change it to the database. Is this recommended to try, would it hurt anything to try it? It moves the files to the database and thats it, right?

also another thought, could it be any of the hacks i installed. i suppose i could disable them one by one and check that too.

hacks installed are;
ibproarcade for vBulletin - version 2.6.5
members who have visited - vers 4.4.3
members who are using flashchat - version 4.4.6
flashchat integration - version 3.55
active link security hack - vers 5.2
marquee system - vers 1.0.5

Thanks again for any light you can shed on this problem..
Reply With Quote
  #2  
Old 06 Nov 2007, 15:31
Kalina's Avatar
Kalina Kalina is offline
 
Join Date: Mar 2005
Location: Canada
Real name: Colleen
Did you make sure that all the folders within the attachment's folder are also chmodded to 777?
Reply With Quote
  #3  
Old 06 Nov 2007, 15:40
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Real name: Anthony
The sub folders of the main attachment folder does not need to be 777, only the attachment main directory needs the 777 permissions.

I would suggest that you have your server admin investigate this matter and check the apache logs.
Reply With Quote
  #4  
Old 06 Nov 2007, 15:45
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Sub folders also need to be writable to the webserver (this will mostly mean world-writable, ie. 777).
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #5  
Old 06 Nov 2007, 15:47
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Real name: Anthony
sub folders will automatically be given the correct permissions once vbulletin/apache adds a sub folder to the main attachment dir.

there is no need to modify the permissions of the sub folders as long as they are already there, that would indicate that the main folder already has 777 access if it wrote a sub folder.
Reply With Quote
  #6  
Old 06 Nov 2007, 15:59
nexialys
Guest
 
1- did you check if you overpass your hosting limit of storage?
2- is your php upload limit is higher than the files uploaded?
3- did you check if your host did not change the PHP permissions in specific situations? (some hosts disable chmod)
Reply With Quote
  #7  
Old 06 Nov 2007, 16:04
jessej jessej is offline
 
Join Date: Jun 2006
chmod777 on all folders. and not being sure i went in and did the chmod777 on all sub folders too. although you make a good point that the subs wouldnt write if the main wasnt 777.. but this was checked. i did change the upload max file size to 8mb .. it was at 2mb. what else? this one has us all perplexed. will check back in a bit, and thanks alof ro the replies. maybe we can crack this think wide open lol. thanks.
Reply With Quote
  #8  
Old 06 Nov 2007, 18:52
Kalina's Avatar
Kalina Kalina is offline
 
Join Date: Mar 2005
Location: Canada
Real name: Colleen
Originally Posted by snakes1100 View Post
sub folders will automatically be given the correct permissions once vbulletin/apache adds a sub folder to the main attachment dir.

there is no need to modify the permissions of the sub folders as long as they are already there, that would indicate that the main folder already has 777 access if it wrote a sub folder.
When you move a site and can't do a proper restore and use FTP, then they do NOT get chmod at all, you have to do it yourself, I know cause I've moved many, many, many forums in the past with just ftp, I have to go into the attachments folder and chmod all the ones inside, manually.
Reply With Quote
  #9  
Old 06 Nov 2007, 19:29
jessej jessej is offline
 
Join Date: Jun 2006
Originally Posted by Kalina View Post
When you move a site and can't do a proper restore and use FTP, then they do NOT get chmod at all, you have to do it yourself, I know cause I've moved many, many, many forums in the past with just ftp, I have to go into the attachments folder and chmod all the ones inside, manually.
This is a very accurate statement. This just happenned to me. Exactly what you say.. All of the child dirs, as well as the parent dir were all chmod'd 777 on the source server, and when they were ported over via FTP to the destination server, they went to 755, and I manually fixed them all. Thanks for the comments. jessej
Reply With Quote
  #10  
Old 26 Feb 2010, 16:57
offervault offervault is offline
 
Join Date: Jan 2010
Same problem

I have the same problem. vBulltein 4.0.2 PL1, fresh copy, not upgrade.

Here are my PHP settings from the Diagnostic tool :

file_uploads: On
open_basedir: None
safe_mode: Off
upload_tmp_dir: None
upload_max_filesize: 40.00 MB

Response : "No errors occurred while opening the uploaded file for reading."

But i still get the stupid red icon when i try to upload files from my computer.
If i upload files by URL it works just fine. I do not understand.

--------------- Added 26 Feb 2010 at 17:01 ---------------

Found a solution for my problem. I have disabled all Ajax features and now at least my Attachments manager works.

Admin Panel -> Settings -> Options -> General Settings -> Disable AJAX Features

Originally Posted by offervault View Post
I have the same problem. vBulltein 4.0.2 PL1, fresh copy, not upgrade.

Here are my PHP settings from the Diagnostic tool :

file_uploads: On
open_basedir: None
safe_mode: Off
upload_tmp_dir: None
upload_max_filesize: 40.00 MB

Response : "No errors occurred while opening the uploaded file for reading."

But i still get the stupid red icon when i try to upload files from my computer.
If i upload files by URL it works just fine. I do not understand.

Last edited by offervault; 26 Feb 2010 at 17:01. Reason: Auto-Merged DoublePost
Reply With Quote
  #11  
Old 26 Feb 2010, 17:26
Speysider's Avatar
Speysider Speysider is offline
 
Join Date: Apr 2009
You bumped a 3 year old thread to discuss a version of vBulletin that you've got the wrong section for?

You need to go to the vB4 General Discussion support board here on vb.org, rather than necro pointless threads.
__________________
vBulletin is down the drain. IB ruined it by attacking XenForo.
I am a MyBB and XF modder only.
Reply With Quote
  #12  
Old 30 Mar 2013, 12:21
majidmozaffari majidmozaffari is offline
 
Join Date: Sep 2008
please help

New Users can not upload files (Upload of file failed.)

Old Users can upload files to

What is the problem؟؟؟
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:10.

Layout Options | Width: Wide Color: