Results 1 to 3 of 3

Thread: [AspJpeg] Fetching a unique generated file name

  1. #1
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    350
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default [AspJpeg] Fetching a unique generated file name

    I can't get my head around this one. I am using AspJpeg to resize images and calling the SaveUnique method to avoid overwriting an existing file.

    The object reference of AspJpeg says it will return the unique filename under which the image ends up being saved. How do I fetch the unique filename?

    Reponse.Write(File.FileName) returns the orginal file name. Not the new unique filename. I am probably missing the obvious here, but does any one have any pointers?

    TIA

  2. #2
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Code:
    <%
    SavedFileName = AspJpeg.SaveUnique(FilePath)
    Response.Write SavedFileName
    %>
    SavedFileName should contain the name of the file it saved in FilePath.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  3. #3
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    350
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default

    thnx Warren,

    Thats what I was looking for!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Forcing a file download
    By UKFlyer in forum Technical Support
    Replies: 5
    Last Post: 6th March 2008, 05:04 PM
  2. Website generated emails sent to Exchange mail server?
    By alano999 in forum Technical Support
    Replies: 1
    Last Post: 29th May 2007, 09:29 PM
  3. Copy a file
    By PascalUK in forum ASP.NET
    Replies: 5
    Last Post: 5th January 2007, 11:05 PM
  4. File/Folder synchronisation ...
    By RMPnet in forum General Technical Support
    Replies: 7
    Last Post: 4th November 2005, 10:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •