error in script

  •  05-19-2010, 2:17 PM

    error in script

    Hi there
     
    I have now tried to get ASPuploader running for several month now, but i cant get i to work.

    When i use the form-manualstart.asp, i get the following result:

    Uploaded File:
    FileName : _1658tif.jpg
    FileSize : 124746
    FilePath : C:\WINDOWS\Temp\UploaderTemp\persisted.E4E70384-C839-197C-F763-BF889E0463E7._1658tif.jpg.resx

    --------------------------------------------------------------------------------

    Uploaded File:
    FileName : _1659tif.jpg
    FileSize : 131995
    FilePath : C:\WINDOWS\Temp\UploaderTemp\persisted.21019EAA-7CB7-C484-64E3-875B73D528EA._1659tif.jpg.resx

    That fine, except, that i'm on a hosted server, and don't have access to get the files from that folder.

    If i add the following 2 lines

    uploader.AllowedFileExtensions="*.jpg,*.png,*.gif,*.zip"
    uploader.SaveDirectory="savefiles"

    so that the file now looks like this:


    <form id="form1" method="POST">
    <%
    Dim uploader
    Set uploader=new AspUploader
    uploader.MaxSizeKB=10240
    uploader.Name="myuploader"
    uploader.InsertText="Upload File (Max 10M)"
    uploader.AllowedFileExtensions="*.jpg,*.png,*.gif,*.zip"
    uploader.MultipleFilesUpload=true
    uploader.SaveDirectory="savefiles"
    uploader.ManualStartUpload=true
    %>
    <%=uploader.GetString() %>
    <br /><br /><br />
    <button id="submitbutton" onclick="doStart();return false;">Start Uploading Files</button>
    </form>

    - then the files are stored correct in the folder "savefiles", but i don't get the filenames out like i did before i added the 2 lines.

    Instead, i get the this error:

    Microsoft JScript runtime error '800a139e'

    This file can not be validated! at function Ox31

    /aspuploader/resources/coreimpl.js, line 1

    It's important to me, that i get out the filenames so that i kan manipulate the files with ASP after upload.
    What am i doing wrong?
     
    I just downloaded ASPuploader again today, so i asume it's the latest version i'm running.
     
    Kind Regards,
    Michael O.
View Complete Thread