Forums

This topic is locked

saving file browser path to db

Posted 21 Dec 2003 02:02:55
1
has voted
21 Dec 2003 02:02:55 Mike Mr. posted:
I have a site with some pictures, i am now building a backend to change pictures. The pictures path is stored in the db and then where i display the pictures, i just pull the path from the db.

What i need to do is i have added a file browser text box to the page, when i browse my file and it puts the path in the text box, i want to just pull the path out of the file text box and store update the particular db record.

That may be easy, but the catch is i also have asp upload component sitting on another page to actually upload the file to the server, in order for that to process the upload, i have to post the form to the next page with asp upload.

How can i make the first thing work and update the db, and then how do i bring it together with the upload?

Thanks!!!!!

Mike


P.S. If i specify the picture size on the dynamic picture box, will any picture the user uploads resize to that size instead of its original or is that a whole other issue. I want all the pictures to conform to a certian size and don't want to have to make the user resize/crop them, i would like code to do it.

Reply to this topic