Forums

PHP

This topic is locked

php upload how to get correct path as well as imag

Posted 02 May 2003 13:31:20
1
has voted
02 May 2003 13:31:20 tom dood posted:
Hi

Just got pure php upload and have got it to add new records to database, including the image filename. The image gets uploaded fine too.

But, in order to get that image to show from my database, the field for that image must have the path to the image from root (or relative).

How can I do this?

Many thanks for help

Replies

Replied 02 May 2003 13:33:43
02 May 2003 13:33:43 Martha Graham replied:
Take a look at the tutorial on how to display the images under the Help button of the UI.

Martha Graham
DMXzone manager
Replied 02 May 2003 13:36:11
02 May 2003 13:36:11 tom dood replied:
Thanks, yes, I just did that & it works fine.

Next question: how do I get all my images to display if they are stored (uploaded) to different subfolders within, for example, the upload/ directory?

thanks
Replied 06 May 2003 10:49:43
06 May 2003 10:49:43 Patrick Woldberg replied:
If you use dynamic folders, you should store the full path in the database. This option can be found in the behaviour on the first tab, underneith the allowed extensions. Use Filename: Prefix with full path.

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

Reply to this topic