Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

error in script

Last post 05-21-2010, 12:27 AM by cutechat. 3 replies.
Sort Posts: Previous Next
  •  05-19-2010, 2:17 PM 61150

    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.
  •  05-19-2010, 2:57 PM 61151 in reply to 61150

    Re: error in script

    Hnag on, i think i have found a solution with the uploader.TempDirectory
     
    Kind Regards,
    Michal O.
  •  05-19-2010, 2:58 PM 61152 in reply to 61150

    Re: error in script

    http://aspuploader.com/document/scr/Choose-upload-method.htm , if you want to get the file name information, please use "Standard ASP Upload" or "Custom file upload handler", mvcfile.FileName will return the uploaded file's filename 
    "mvcfile.CopyTo" or "mvcfile.MoveTo" can finish same functionality as "SaveDirectory".
     
    Regards,
    Eric
  •  05-21-2010, 12:27 AM 61206 in reply to 61150

    Re: error in script

    Michael ,
     
    We have confirmed that is a bug for the SaveDirectory property.
     
    We have fixed it.
     
    Now the GetUploadedFile works when you use the SaveDirectory
     
    Regards,
    Terry
     
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.