SMF Support > SMF 1.1.x Support
Serious problem uploading attachments and avatars
diegolyanky:
Hi:
I have a problem:
When I try to upload attachments, becomes an error: " An Error Has Occurred Your attachment couldn't be saved."
When I try to upload an avatar, I can't upload it, and no message appear.
I have experience with the comfiguration of smf, but this time I don't understandt wich is the problem.
I think, is an problem with php.ini ... but I don't know where to put it, and what code will be inside.
Please, if anyone can help, I and 370 users must will be happy.
My msn: diegolyanky@gmail.com
Many thanks in advance.
Anakin_holland:
Well, since attachments and uploaded avatars are placed into the same directory on the server, my guess is that apache doesn't have access to that directory?
I run my server at home, and here's how it works for me (I deleted all that was useless):
===========================================
root@/var (1) > ls -al /var/www/html/smf
drwxr-xr-x 2 apache root 4096 Jul 22 15:02 attachments
===========================================
As you can see apache is owner of this directory (if you have telnet/SSH at your disposal try 'chown'). If this is not an option it should say at least drwxr-xr-x so every other user (on Linux that is, not on the board ;)) has access as well...
Greetz!
diegolyanky:
Anakin:
Thanks for your reply. My web ( www.diegotronica.com.ar/dtforum ) is into an APACHE server. But, I don't know repair that problem. I, for some reasons, was deleted all my site, and with a database saved I make the forum again. Before this change, my forum works fine ... but now, not. :(
This problem is making me crazy, be cause I don´t know nothing about programming :-[ :-[
Can you give me a hand wiyth this problem ... I can make an admin account for you, for repair this problem.
Many thanks for your reply. ;D
Anakin_holland:
This isn't about programming m8 ;)
Take a look in the Admin Panel -> "Edit features and options" -> "Attachments" -> "Attachments directory". The directory given there should also excist on the server and be available (read ánd write) to user apache?
I've tested it at my forum (which isn't even online yet, so I'm not thát experienced!) and this is the outcome:
[*]If I remove rights so apache can only read:
--- Quote ---An Error Has Occurred! 2: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /var/www/html/smf/attachments/6_Putting_channels_in_using_DreamboxEdit_pdf1d301d07c87459ae3cb3dfe964b59802 File: /var/www/html/smf/Sources/Post.php Line: 1134
--- End quote ---
[*]If I move the directory so it isn't accessable at all:
--- Quote ---An Error Has Occurred! Cannot access attachments upload path!
--- End quote ---
[/list]
So the problem you are having is of a different nature...
Could you please check what the path is to the directory for the attachments, and take a look at it with an FTP-client or telnet/SSH?
Cheers!
[Unknown]:
Can you post a phpinfo? What is phpinfo.php?
-[Unknown]
Navigation
[0] Message Index
[#] Next page
Go to full version