Forums

PHP

This topic is locked

Pure PHP Upload - Dynamic DIR path with apostrophe

Posted 13 Aug 2003 19:00:29
1
has voted
13 Aug 2003 19:00:29 Andrew Clausen posted:
Hello,

I have a a database running using Pure PHP Upload that uploads images to a dynamic directory titled by the name of each house (villa rental website).

I realize now that I should have made the DIRs go by the record ID#, but there are already 200+ homes isnerted into the database.

Any homes with apostrophes, i.e. Drake's Passage, are creating a DIR that looks like "Drake/'s Passage". Any idea how I can get rid of that bothersome slash (just for the upload DIR, need to keep the apostrophe in the 'name field for the house title).

The image paths are OK - right now I am just renaming the DIRs by removing the slash and everything loads OK, but would like to set it up so this extra step isn't necessary.

Thanks!

Replies

Replied 17 Aug 2003 01:39:00
17 Aug 2003 01:39:00 Dean Blackborough replied:
It would be nice for PHPupload to remove apostrophes from the filenames.

Any chance getting this adding in the next update, alone with an update on these two feature requests.

Request 1
www.dmxzone.com/forum/topic.asp?TOPIC_ID=22690&FORUM_ID=790&CAT_ID=260&NewsId=4509&Topic_Title=Store+Filename+Only%2FPrefix+with+Full+Path&Forum_Title=Request+Features

Request 2
www.dmxzone.com/forum/topic.asp?TOPIC_ID=22691&FORUM_ID=790&CAT_ID=260&NewsId=4509&Topic_Title=Multiple+File+Uploads+to+Multiple+Locations%2E&Forum_Title=Request+Features

Edited by - G3D on 17 Aug 2003 01:41:07
Replied 25 Aug 2003 10:18:48
25 Aug 2003 10:18:48 Patrick Woldberg replied:
I will get the folder creation fixed.

About the requests of G3D, the next update will probably contain the possibility to store relative paths in the database, but the second request will be in the mayor update to 3.0, then you will be able to set for each filefield all settings individual. The mayor update can take a while till it be finished because it needs a complete rewrite of the code and a complete new interface.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 25 Aug 2003 14:28:53
25 Aug 2003 14:28:53 Dean Blackborough replied:
Cool

--------------------------------------
www.galleryof3d.com
(PHP and MySQL)

Reply to this topic