0
PHP insert/update record with file upload

/t5/dreamweaver-discussions/php-insert-update-record-with-file-upload/td-p/221769
Aug 25, 2007
Aug 25, 2007
Copy link to clipboard
Copied
I used Dreamweaver's Insert Record wizard to make a php/mysql
page. In this Insert Record application I would like to have a File
Field that uploads a file to an "upload" directory on the website
and adds the file name to the database as text (not the
entire path C:/Mydocuments etc., just the file name). How do I do
that? Thank you.
TOPICS
Server side applications
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/dreamweaver-discussions/php-insert-update-record-with-file-upload/m-p/221770#M193132
Aug 26, 2007
Aug 26, 2007
Copy link to clipboard
Copied
bcmpro wrote:
> I would like to have a File Field that uploads a file
> to an "upload" directory on the website and adds the file name to the
> database as text
Dreamweaver won't automate it for you. You either need to buy a
commercial extension (DMXZone, WebAssist, and Adobe Dreamweaver
Developer Toolbox all offer paid-for solutions), or you need to roll
your own. My book, "PHP Solutions" has detailed instructions for
uploading files in a secure manner. Alternatively, you can learn all
about PHP file uploads free of charge from the PHP manual:
http://www.php.net/manual/en/features.file-upload.php
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
> I would like to have a File Field that uploads a file
> to an "upload" directory on the website and adds the file name to the
> database as text
Dreamweaver won't automate it for you. You either need to buy a
commercial extension (DMXZone, WebAssist, and Adobe Dreamweaver
Developer Toolbox all offer paid-for solutions), or you need to roll
your own. My book, "PHP Solutions" has detailed instructions for
uploading files in a secure manner. Alternatively, you can learn all
about PHP file uploads free of charge from the PHP manual:
http://www.php.net/manual/en/features.file-upload.php
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

