Previous Thread
Next Thread
Print Thread
Hop To
Attachment Storage Directory value loses slashes #219606 11/25/2008 2:18 PM
Joined: Oct 2004
Posts: 86
QSS Tim Offline OP
journeyman
OP Offline
journeyman
Joined: Oct 2004
Posts: 86
I was going through the control panel to find how to turn off the image resizing and in the same vicinity I noticed that my path for Attachment Storage Directory is munged in the display. (Found under Control Panel -> Feature Settings -> Attachements -> Attachment Storage Directory)

If the path should be "I:\Inetpub\webroot\forums\attachments" it displays as "I:Inetpubwebrootforumsattachments". If I change it to "I:\Inetpub\webroot\forums\attachments", test directory with good results and save it, it refreshes and displays again as "I:\Inetpub\webroot\forums\attachments".

I'm assuming it's saving right (or was unmolested in the upgrade) or else I would have had calls already on the uploads not working.

Thanks,
Tim


UBB Since November 07, 2000.
Re: Attachment Storage Directory value loses slashes [Re: QSS Tim] #219607 11/25/2008 2:28 PM
Joined: Dec 2003
Posts: 5,945
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,945
The only surefire way is to test a attachment post or find one that was posted after you corrected it. And verify it is indeed in the correct folder.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Attachment Storage Directory value loses slashes [Re: Ruben] #219608 11/25/2008 2:57 PM
Joined: Oct 2004
Posts: 86
QSS Tim Offline OP
journeyman
OP Offline
journeyman
Joined: Oct 2004
Posts: 86
Actually, I checked in config.inc.php and discovered that the ATTACHEMENTS_PATH did have the "stripped" value. I tried to give it escaped slashes (e.g. "\\") and it didn't like that. So, I changed them to forward slashes (e.g. "/") and it seems to work as expected now. They even show up fine in the control panel now, although I've not tried to change them there again as in the brief time that I had changed it, it generated support issues as people's uploads were not occuring.

On that note, I got calls that downloads were failing (people upload screnshots for support purposes.) With the bad path, it appeared to the end users that the uploads were working fine. Meaning, they weren't being made aware that their file didn't really upload. It was obvious that it failed though when someone visited the post to assist, and the download couldn't be found. I can see a gap in numbers in the attachment directory during the time that the uploads didn't work (e.g. the files went from 4510.png to 4522.pdf, with nothing inbetween but "test.file".)

Thanks,
Tim


UBB Since November 07, 2000.

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Horizontal Image Attachment
by ECNet - 09/11/2019 12:17 PM
user profile, after I click Update nothing happens
by PianoWorld - 09/10/2019 12:38 PM
Inline Image Embeds
by ECNet - 09/03/2019 2:38 PM
Paid Subscriptions - Needs More Incentive
by M4TT - 08/25/2019 10:06 PM
visual accessibility issues.v7.7.3
by Ruben - 08/21/2019 1:50 PM
Who's Online Now
1 registered members (isaac), 71 guests, and 362 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.3