3/14/2024 0 Comments Angular file upload example![]() ![]() Set it as " true " for uploading multiple files at a time and as " false " for single file at a time. Remember to change 'resetVar' value 'true' to 'false' after every reset. It's better to assign one boolean variable ('resetVar' here)to it and then change that variable's value. Give it's value as " true " whenever you want to clear the list of uploads being displayed. Assign one custom function ,for example " docUpload($event) " here, where " $event " will contain the response from the api. It will return the response it gets back from the uploadAPI. Assign one custom function ,for example " fileSelected($event) " here, to catch the event. It will return the standard html onchange/drop event when the file is selected/dropped. All available key-value pairs are given in example 2.For detailed decription refer the table below. Use this to add custom constraints to the module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |