This topic is locked

Upload filename question

3/8/2007 4:27:53 PM
ASPRunnerPro General questions
S
salamander author

Hello...using ASP Runner for a bit now and I love it. My question/problem as it relates to this solution below.
I am unable to find the uploader.asp file as mentioned.
Just to clear this up...I have successfully created an upload function. I want the name of the file "pic.gif" to be entered into the database because right now I have to manually enter the filename into the text filed of database to get the picture to appear.
Any help would be appreciated. Best regards and thanks!!
Sal
QUOTE(admin @ Dec 30 2004, 08:39 AM)

Hi,
here is how you cando this:

  1. ImagePath field

    Set View as to File-based image, Edit as to Text field. Simply put there path to image file on the server.
  2. Dummy field

    Do not show this field on the List page, set Edit as to Database-based image. This will create a file upload field on the Edit page which you should use to upload image files.
  3. Modify uploader.asp file to upload files to Uploads directory on the Web server according to http://www.asprunner.com/forums/index.php?...p?showtopic=874
  4. Make sure Uploads directory has write permissions for Everyone.
    This is it.

J
Jane 3/9/2007

Sal,
this old solution doesn't work with the latest version.
I recommend you to use File on the "View as" settings and "Edit as" settings dialogs on the Visual Editor tab. To open these dialogs double click on your fields.
Here is the "How to display images and upload documents to the database" flash tutorial:

http://www.xlinesoft.com/asprunner/tutorial.htm

S
salamander author 3/9/2007

Thanks, I'll give it a go.

S
salamander author 3/9/2007

Hi there and thanks again for your response. My requirement is a bit different. I think it's a small thing that some advanced members may quickly recognize.

  • I have my images stored on the web server.
  • db text field "PicturePath" has been manually populated with picture path\filenames. (works great)
  • dummy db textfield for upload procedure that works fine as well
    What I want to avoid is the user having to type "bla.jpg" in the "PicturePath" field when adding/editing a record. The filename IS populated in a field as part of the upload function, so really, if there is some way to just automatically have that value jump into the database field...I can make this thing work.
    Any ideas?
    Sal,

    this old solution doesn't work with the latest version.
    I recommend you to use File on the "View as" settings and "Edit as" settings dialogs on the Visual Editor tab. To open these dialogs double click on your fields.
    Here is the "How to display images and upload documents to the database" flash tutorial:

    http://www.xlinesoft.com/asprunner/tutorial.htm