Forums

PHP

This topic is locked

pure php upload problem

Posted 28 Jul 2003 18:59:15
1
has voted
28 Jul 2003 18:59:15 D.D.M. van Zelst posted:
Hi, i just got Pure PHP upload bundle but i have a small problem and i'm new to it.
When i try to upload and store file with full path prefix, it's store's a weird path in my database.
My upload path in php upload is something like this: ../../upload/
Now it put's something like this in my database: root/folder1/folder2/../../upload
with no image name or whatever, what am i doing wrong??
It all works when i choose to store only filename but i can't get delete before update to work then.
Someone can help me??
Thnx.

Replies

Replied 30 Jul 2003 18:34:46
30 Jul 2003 18:34:46 D.D.M. van Zelst replied:
Nobody who can help me out here??

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi, i just got Pure PHP upload bundle but i have a small problem and i'm new to it.
When i try to upload and store file with full path prefix, it's store's a weird path in my database.
My upload path in php upload is something like this: ../../upload/
Now it put's something like this in my database: root/folder1/folder2/../../upload
with no image name or whatever, what am i doing wrong??
It all works when i choose to store only filename but i can't get delete before update to work then.
Someone can help me??
Thnx.

<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 05 Aug 2003 11:11:59
05 Aug 2003 11:11:59 Patrick Woldberg replied:
Delete Before Update should work fine also if you store only filename, it takes the upload folder of your Pure PHP Upload.

The problem about the path that it stores in the database surely does not look good and is probably a bug in the behavior. I will do some testing with this.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------

Reply to this topic