100
igUpload render expanded view from the start
posted

Hi IG team,

The igUpload component starts out as a button and only renders the "ui-iguploadsingle" widget after the first upload has been initialized.
For our purposes this causes an inconsistent layout and user experience. So I was wondering is there is a way to have the uploader expanded to its full size by default.

You check out this behavior on your demo page https://www.igniteui.com/file-upload/basic-usage
J
ust start uploading a file and immediately cancel. Now you have the expanded view without any files uploaded.

Collapsed:

Full:

Parents
No Data
Reply
  • 23930
    Verified Answer
    Offline posted

    Hi,

    Thank you for contacting Infragistics Developer Support.

    You can achieve what you are looking for by getting the file input the upload is using and calling its change method. This will make the upload think that you uploaded a file and you will get the larger container. Note that because we don’t provide an actual file, a client side error will be thrown by the upload and you should make sure that you don’t handle it with your normal error handling logic, since this error is expected. In addition, you can hide what you are doing from the end user, by initially hiding the upload and only showing it once the client side error has happened.

    Please check the attached sample for one possible way to do this.

    Please let me know if you have any additional questions.

    Regards,
    Dimitar
    Software Developer
    www.infragistics.com

    file input test.zip

Children
No Data