View Full Version : File Upload not working?
desler
08-09-2006, 01:02 PM
I've tried to search through the forum regarding this issue but the information is somewhat sketchy. Originally what I was doing was modifying the script so I could upload custom JPG thumbnails for each website. I got everything working right. When I upload the file via the 'File Storage' functionality, it goes to the /upload directory, which is fine, but then the image itself is inaccessible. You get a forbidden error on the website trying to access it directory, and can't even download it through FTP. The upload directory permissions seem to be set to 777, so I'm not sure if the Chmod'ing is wrong or if this function just doesn't work. I just installed this script yesterday, and although everything else seems to work flawlessly, this piece of the puzzle still eludes me.
If it doesn't work, is there any way to fix this functionality? Any help would be appreciated. Thanks in advance.
Olaf Lederer
08-09-2006, 02:06 PM
inside the "uploads" folder is a hidden .htacces file to prevent hotlinking from theis directory (I think) ...
just upload your files to a diff. location.
Something else, you know how to show this uploaded content?
desler
08-09-2006, 03:41 PM
Thanks Olaf, that mostly fixed the problem, editing the .htacess to Allow from All instead of Deny from All. Now the pictures show up like they should. I still can't download them from my FTP, I get error 550, which will make backing up my site somewhat impossible for the thumbnail portion. Not sure why I'm not able to download them from the FTP.
As for getting them to display, I basically replaced where it would display Alexa thumbnails in link-display.tpl and view-link.tpl - replaced the IMG SRC with {$link.thumbnail} where thumbnail was from my file storage. It was very easy to implement, I'm not big on scripts myself, but you can find it pretty easily and change it without much problem, just be sure to make backups.
I'm so happy. If anyone else knows why I am having problems downloading the images from my FTP, I'd appreciate some help. I'd like to back up my site often, thumbnails and all, because of the amount of work we plan on putting into our link directory.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.