Object required: 'jfile' ERROR - Please Help

Last post 12-19-2011, 8:49 AM by jerry2. 8 replies.
Sort Posts: Previous Next
  •  03-01-2010, 3:46 PM 59079

    Object required: 'jfile' ERROR - Please Help

    Hi guys, we are getting this error when using the form-multiplefile.asp example provided in the ZIP. 

    Microsoft VBScript runtime error '800a01a8'
    Object required: 'jfile'
    ASPUploader/aspuploader/include_aspuploader.asp, line 447
     
    We've replaced the license with the new one from CuteSoft, that didn't fix it. 
    Below is the code we used from form-multiplefiles.asp example:
     
      <%
       Dim uploader
       Set uploader=new AspUploader
       uploader.MaxSizeKB=10240
       uploader.Name="myuploader"
       uploader.SaveDirectory="savefiles"
       uploader.AllowedFileExtensions="*.jpg,*.png,*.gif,*.doc,*.html"
       uploader.InsertText="Upload File (Max 10M)"
       uploader.MultipleFilesUpload=true
       %>
       <%=uploader.GetString() %>
       </form>
       
       <br/><br/>
    <%

    If Request.Form("myuploader")&""<>"" Then

     Dim list,i
     list=Split(Request.Form("myuploader"),"/")

     For i=0 to Ubound(list)
      if i>0 then
       Response.Write("<hr/>")
      end if
      Dim mvcfile
      Set mvcfile=uploader.GetUploadedFile(list(i))

      Response.Write("<div style='font-family:Fixedsys'>")
      Response.Write("Uploaded File:")
      Response.Write("<br/>FileName : ")
      Response.Write(mvcfile.FileName)
      Response.Write("<br/>FileSize : ")
      Response.Write(mvcfile.FileSize)
      Response.Write("<br/>FilePath : ")
      Response.Write(mvcfile.FilePath)
      Response.Write("</div>")
     Next
    End If

    %>
     

    Any thoughts or suggestions would be very much appreciated.  Thanks in advance!
  •  03-01-2010, 3:49 PM 59080 in reply to 59079

    Re: Object required: 'jfile' ERROR - Please Help

    Just wanted to add that the aspuploader was just purchased and deplyed within the last 2 days.
  •  03-07-2010, 7:12 PM 59217 in reply to 59079

    Re: Object required: 'jfile' ERROR - Please Help

    Hi,
     
    Can you download the last version and try again ?
     
    Maybe it will be OK , otherwise it will report the real reason of the error.
     
    Regards,
    Terry
     
  •  12-18-2011, 3:01 PM 72069 in reply to 59217

    Re: Object required: 'jfile' ERROR - Please Help

    I get same error with this demo and I can not make multifile upload work.

    I get objet required: jfile in line 464 :-(((

  •  12-19-2011, 6:30 AM 72078 in reply to 72069

    Re: Object required: 'jfile' ERROR - Please Help

    Hi jerry2,
     
    Please try demo http://aspuploader.com/demo/form-multiplefiles.asp, if the demo works for you, please download the latest version and try again.
     
    Latest version downloads http://aspuploader.com/download/aspuploader.zip
     
    Regards,
     
    Ken
  •  12-19-2011, 7:19 AM 72079 in reply to 72078

    Re: Object required: 'jfile' ERROR - Please Help

    I am deseperate because I need this functionality and I can not try to fix it as your javascript is protected.

    Your demo WORKS. If I bring the download folder to my server it doesn't work, permissions are OK, the normal file upload works, just the one that postsback doesn't work :-(

    What can be wrong? Please help.

    PS - I have to mention this: I must change the temporary folder to my own selection, because by default it doesn't work, nothing is uplaoded there:  Get error while validating the file : Unable to find file 3f0cae14-4338-42f4-8429-d7bdc87e0d28 in C:\Windows\TEMP\UploaderTemp at function Ox2c
     
    If I change temp to my folder it is ok, but as I told, it get's the 464 jfile error :-(((
  •  12-19-2011, 8:07 AM 72126 in reply to 72079

    Re: Object required: 'jfile' ERROR - Please Help

    I just noted, the form-multiplefiles.asp works (changing the folders and using the server-mappath for copy), but the ajax version of it doesn't work! I would like to have AJAX version working!

    Another thing is there is a bug in ASP file of your functions. MoveTo should not be same function as copyTo, move to should MOVE the file, you can either copy it and delete old one or move it. THis is a bug, but it doesn't matter to me as I use my own copy functions on my site anyway.

    Can you help me get the Ajax upload working without jfile problem?

  •  12-19-2011, 8:17 AM 72127 in reply to 72126

    Re: Object required: 'jfile' ERROR - Please Help

    Yes, I can confirm, the AJAX multiple files test in your package does not work here... I get error 500 and I get line 464 error in include_aspuploader.asp and object: required: jfile.

    Something is wrong with ajax request I guess with your function as on the handler page I have problem. The problem seems to be in the mvcfile=uploader.GetUploadedFile(list(i)) as I already told you, if I do response.end() before this line I do not get error and redirect (obviously I get no file info also!) but if I do response.end() after this line I get error 500.

    CLearly the problem is either in your protected js code somewhere or in my server configurations. As all the other modules and everything works on my server that is quite busy, I do believe you have a bug ;-(

  •  12-19-2011, 8:49 AM 72131 in reply to 72127

    Re: Object required: 'jfile' ERROR - Please Help

    With help of mr. Kenneth we found the problem if anybody else need it. On the handler page one must specify the temp file upload directory also, not just in the main file.
View as RSS news feed in XML