jQuery UI Widgets Forums Editors FileUpload File Name not being showed after file uploaded

This topic contains 2 replies, has 2 voices, and was last updated by  Gerardo Manrique 9 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • Gerardo Manrique
    Participant

    Hi there,

    I’m starting using jqxFileUpload and the files are being uploaded to the /tmp folder on the web server succesfully.
    I’ve noticed that, as long as my script take note of the uploaded file it’s deleted automatically. Is that the normal behavior of the control or perhaps could be my server configuration?
    However that’s not my real question because I think I can handle that somehow, what take me to write to you is that I don’t know how to make the jqxFileUpload show the name of the file once uploaded.
    Comments about both cases will be very appreciated.

    Thanks a lot in advance.


    Dimitar
    Participant

    Hi Gerardo Manrique,

    1. Once the file has been uploaded, it’s “file row” is removed from the widget automatically. The widget cannot control (i.e. delete) the file in your server after the upload.
    2. You can get the uploaded file’s name, along with the server response (if any) in the uploadEnd event. Here is how you can bind to it:
      $('#jqxFileUpload').on('uploadEnd', function(event) {
          var args = event.args;
          var fileName = args.file;
          var serverResponce = args.response;
          // Your code here.
      });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    Gerardo Manrique
    Participant

    Thanks a lot Dimitar!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.