mysmartupload issue

Discussion in 'ASP General' started by Todd, Dec 18, 2007.

  1. Todd

    Todd Guest

    hello

    I'm trying to rename the aspsmartupload filename but having issues.

    Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
    mySmartUpload.Upload
    set mySmartUpload.Files.Item(1).FileName = mySmartUpload.Form("year") &
    mySmartUpload.Files.Item(1).FileName



    this is the error I get

    Microsoft VBScript runtime error '800a01a8'

    Object required: 'FileName'

    the filename will write to the screen with no problems, as well, I tried
    assigning a simple string to the filename but with no success.

    Can you even change mysmartupload data? I hoped you could.

    any insight would be most appreciated

    Thank You
     
    Todd, Dec 18, 2007
    #1
    1. Advertising

  2. Todd

    s_m_b Guest

    =?Utf-8?B?VG9kZA==?= <> wrote in
    news::

    I use this to process files.

    Set fileUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
    ........
    fileUpload.Upload
    ........
    For each fileUploaded In fileUpload.Files
    ..........
    strfilename = trim(fileUpload.Files.item(1).filename)
    ..........
    strfileFullname = fileUploaded.name
    ..........
    fileUploaded.Saveas (strPubHoldingFolder & "\" & strFileName)
    ..........
    next

    ........
    This allows you to alter the name of the uploaded file if you want.
    Its just a snippet from a much more involved loop (hence the ......) so
    I've not dim'ed and there is no error trapping!
    Its worth pointing out that this component has long since been
    discontinued.


    > hello
    >
    > I'm trying to rename the aspsmartupload filename but having issues.
    >
    > Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
    > mySmartUpload.Upload
    > set mySmartUpload.Files.Item(1).FileName = mySmartUpload.Form("year") &
    > mySmartUpload.Files.Item(1).FileName
    >
    >
    >
    > this is the error I get
    >
    > Microsoft VBScript runtime error '800a01a8'
    >
    > Object required: 'FileName'
    >
    > the filename will write to the screen with no problems, as well, I tried
    > assigning a simple string to the filename but with no success.
    >
    > Can you even change mysmartupload data? I hoped you could.
    >
    > any insight would be most appreciated
    >
    > Thank You
    >
    >
    >
     
    s_m_b, Dec 20, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JohnFol
    Replies:
    0
    Views:
    1,347
    JohnFol
    Aug 6, 2003
  2. Satinderpal Singh

    AppDomain Issue...

    Satinderpal Singh, Oct 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    699
    Dan Ignatov
    Oct 27, 2003
  3. Catherine Jones

    rich text box issue

    Catherine Jones, Dec 11, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    739
    Robert Jacobson
    Dec 11, 2003
  4. Srini
    Replies:
    11
    Views:
    988
    Arne Vajhøj
    Jun 1, 2008
  5. Brossyg

    Problem with path for mySmartUpload

    Brossyg, Feb 5, 2008, in forum: ASP General
    Replies:
    3
    Views:
    367
    Daniel Crichton
    Feb 6, 2008
Loading...

Share This Page