Page 1 of 1

Could not upload attachment to ./files/

Posted: Mon Oct 08, 2012 7:58 pm
by colorwarphotos
Hello.

I run the forum www.pixpast.com
It is running on 3.0.9.

upto last night every thing was super but now today when users go online and try and attach a photo. they get this message every time.

Could not upload attachment to ./files/

I checked the admin settings and the max data size for this files folder is 0 (so no limit)
I also checked my hosting account and there is lots of space there ??

any ideas where this problem could lie ?

many thanks.
Ian

Re: Could not upload attachment to ./files/

Posted: Mon Oct 08, 2012 9:47 pm
by tbackoff
Is the /files/ directory set to 777 for permissions?

Re: Could not upload attachment to ./files/

Posted: Tue Oct 09, 2012 9:05 pm
by colorwarphotos
i had a look in my ftp program and the folder has nothing in the box for attributes.
I added 777 and clicked to apply this to all folders within files.
did it and then checked again, still nothing in the attributes box ??

weird.
i can post treads with text no problem, but no way to post an attachment ?

please help.
Thanks.
Ian :D

Re: Could not upload attachment to ./files/

Posted: Tue Oct 09, 2012 9:26 pm
by colorwarphotos
tried again putting the 777 into the directory.

500 'SITE CHMOD 777 .htaccess': command not understood

Re: Could not upload attachment to ./files/

Posted: Wed Oct 10, 2012 1:14 am
by Oyabun1
You appear to be on a Windows server, chmod only applies to *unix based servers. You would need to ask you host to check and change the permissions on that folder.

Re: Could not upload attachment to ./files/

Posted: Wed Oct 10, 2012 9:26 am
by colorwarphotos
ok got back an email from my hosting company


Your domain is hosted on a Windows server, therefore it isn't possible to set file permissions as 777 - I can however, confirm that all folders on your hosting package are read/writable.


so what can I do now ?

Re: Could not upload attachment to ./files/

Posted: Wed Oct 10, 2012 10:54 am
by colorwarphotos
i just tried to update my php with the newest version.
put in the install directory and went through the whole update process no problem, until the option comes to download the install files.
clicked it at the end of the process and this is what i got

Information
Unable to open file ./../store/update_3.0.8_to_3.0.11_1349866383_fe46e163290fbfa5.tar.gz [gzopen - wb]


can some one please help me understand the problem here ?

thanks.
Ian

Re: Could not upload attachment to ./files/

Posted: Wed Oct 10, 2012 11:00 am
by canonknipser
There can be different reasons:
  • all Upload first go to a temp directory and are afterwards copied to the destination directory - temp directory ist php-specific and controlled by php-setting "upload_tmp_dir" [see php-info on acp] - check the rights for that directory (or let you host do it)
  • there is a maximum file size defined by "upload_max_filesize" [see php-info on acp]
  • Thumbnail generation may fail
  • ...
colorwarphotos wrote:can some one please help me understand the problem here ?
looks like basically the same problem - file rights 8-)

Re: Could not upload attachment to ./files/

Posted: Wed Oct 10, 2012 11:06 am
by Mick
If your host still says they can't help you ask them to check their scripts in the cgi-bin directory. Very often host first line support aren't good at troubleshooting they just use flash cards.

Re: Could not upload attachment to ./files/

Posted: Wed Oct 10, 2012 6:25 pm
by colorwarphotos
thank you.
I have sent them a new email with your suggestion.
It was very weird, i came home and the site attachments worked for 30 minutes. then clicked on a new attachment and BANG, cannot access to files... bla bla bla.

very weird.

Can i ask, would it be a good idea to change my hosting account from windows to linux, then I could put in the 777 command for these folders.
Would that hurt my forum setup ?

Thanks.
Ian :D

Re: Could not upload attachment to ./files/

Posted: Wed Oct 10, 2012 6:33 pm
by DionDesigns
Sometimes hosting companies will put a hard cap on the number of files in a single directory. How many files do you have in that directory?

Re: Could not upload attachment to ./files/

Posted: Wed Oct 10, 2012 6:57 pm
by colorwarphotos
9,456 Files,

Re: Could not upload attachment to ./files/

Posted: Wed Oct 10, 2012 10:20 pm
by Oyabun1
colorwarphotos wrote:Can i ask, would it be a good idea to change my hosting account from windows to linux
Linux servers generally give more scope for resolving issues, like file permissions, than Windows servers.
colorwarphotos wrote:9,456 Files,
We have no way of knowing whether that is at or over your host's limit. You will need to check with them what the limit is.

Re: Could not upload attachment to ./files/

Posted: Thu Oct 11, 2012 7:38 am
by colorwarphotos
ok waiting off the response from my hosting.
funny thing is, just for fun i went into my forum control panel and refreshed all the template files and styles.
Then went back into the forum and tried attaching some thing... worked again...
very very weird..

but will check again in a few hours and see what happens.
Ian