User:anonymousLog inRegister
Recents:
Uploadify - Migration to version 2.0

This document is part of the documentation of user control Uploadify

When migrating to Version 2.0 you will find the following improvements:

  • Better help for error detection.
  • New events triggered (please take a look at the documentation for further information)
    • New event triggered when a file is selected.
    • New event triggered when multiple files are selected.
    • New event triggered when upload is canceled.
    • New event triggered when an error occurs.
    • New "Start" method to perform the upload in two steps (first select the files and then perform the upload)
    • New event triggered when all files were uploaded.
  • More information can be obtained from a file, such as extension, modification, creation date and size.

The migration is not automatic, you must perform the following steps.

  • If you are working in Java, delete file upload.class located in your "Servlet directory" folder.
  • Import sample XPZ (located in the folder of the user control), or drag Uploadify control to the web form of a web panel.
  • Properties removed:

    So. what was previously valid:
    Event Uploadify1.OnComplete
      msg(Uploadify1.UploadedFileName)
      msg("Files uploaded:" + &UploadedFiles.Count.ToString())
    EndEvent
    

    Now you must change it as follows:

    Event Uploadify1.OnComplete
      &File = Uploadify1.File
      msg(&File.OriginalFileName)
      msg("Files uploaded:" + &UploadedFiles.Count.ToString())
    EndEvent    
    

    Although the best way would be:

    Event Uploadify1.OnAllComplete
      for &File in &UploadedFiles
        msg(&File.OriginalFileName)
      endfor
    EndEvent 

 

Java users only:
Now, control dependencies (.jar files) are included as a File datatype into the KB so they are automatically copied to the relevant folder.
Jar files are automatically copied to the "drivers" Java model folder, GeneXus automatically copies its contents to the lib folder of your web application in the servlets server.
In some cases, GeneXus does not make such copy and you have to do it manually. If this is the case, build the application and then copy the contents of this folder into the lib folder.

Created: 11/04/11 03:50 PM by moliveri Last update: 11/08/11 03:58 PM by moliveri
 
Page
Share
Categories
Group
Powered by GXwiki 4.0 Beta1 (generated with GeneXus X Evolution 2)