How can I add file locations to a database after they are uploaded using a Perl CGI script?
Posted
by Paul K
on Stack Overflow
See other posts from Stack Overflow
or by Paul K
Published on 2010-03-29T15:17:59Z
Indexed on
2010/03/30
19:23 UTC
Read the original article
Hit count: 169
I have a CGI program I have written using Perl. One of its functions is to upload pics to the server.
All of it is working well, including adding all kinds of info to a MySQL db. My question is: How can I get the uploaded pic files location and names added to the db?
I would rather that instead of changing the script to actually upload the pics to the db. I have heard horror stories of uploading binary files to databases.
Since I am new to all of this, I am at a loss. Have tried doing some research and web searches for 3 weeks now with no luck. Any suggestions or answers would be greatly appreciated. I would really hate to have to manually add all the locations/names to the db.
I am using: a Perl CGI script, MySQL db, Linux server and the files are being uploaded to the server. I AM NOT looking to add the actual files to the db. Just their location(s).
© Stack Overflow or respective owner