1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Persists ASPUpload

Discussion in 'C#' started by Sleeping Troll, Jul 17, 2008.

  1. #1
    I have no problem with my form text via Upload.form, however My image file does not seem to be getting saved.



    Set File = Upload.Files("ImgFile")
    
    If Not File Is Nothing Then
    
    Filename = file.Filename
    
    Response.Write(Filename)
    
    File.SaveAs "../Images/Products/" & Filename
    
    End If
    Code (markup):

    Response.Write(Filename) is correct, So where am I making an error?
     
    Sleeping Troll, Jul 17, 2008 IP
  2. davejames909

    davejames909 Guest

    Best Answers:
    0
    #2
    does the image file you are uploading have a space in the filename? ie. water[space]lillies.jpg (water lillies.jpg) sometimes this can cause confusion when uploading.
     
    davejames909, Jul 17, 2008 IP
  3. Sleeping Troll

    Sleeping Troll Peon

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No spaces, I thought about permissions and sure enough did not have write permissions, made no difference though.
     
    Sleeping Troll, Jul 17, 2008 IP
  4. salman4raza

    salman4raza Peon

    Messages:
    373
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    it is perfectly working, check it.

    it may help you in checking and modifying

    or send the full code to check.

     
    salman4raza, Jul 21, 2008 IP