BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
thanks,
Randy
Thanks very much for any information about these items.
Randy
Hi Randy Craven,
Thanks for using Syncfusion components,
Query: Is it possible to present some detail about the error to the user?
In our ejUploadbox, we have provided the action argument in the error event. Action argument provide the cause of the error. Different values of the action argument in error event.
action – ExtensionAllow : If the error event triggered due to the user select the file other than the files that are listed in extensionAllow.
action – ExtensionDeny : If the error event triggered due to the user select the files that are listed in ExtensionDeny.
action – Error : If the error event triggered due to the URL not found.
We didn’t provide the full details of error in the error event. We have consider this as an issue (“Need to give full information about error”). We have logged an issue report for this. Fix for this issue will be available in our next service pack release which is expected to be rolled out at the end of the next month. We will notify you once our service pack release is rolled out. If you want the fix sooner please let us know, so that we can provide you patch for this fix on or before (27th November).
Query: Is there documentation about how to use the model and files parameters
There is no separate documentation for how to use model, files arguments in the error event. Please find the below information to know more about files, model arguments.
In files argument we can get the following information.
1. Extension of file (extension)
2. Name of the file(name)
3. File properties(rawfile)
a. lastModified
b. lastModifiedDate
c. name
d. size
e. type
4. Size
Please find the below code snippet, to know how to use files arguments
[javascript] function errorhandling(args) { alert(args.files[0].name); alert(args.files[0].rawFile.lastModifiedDate); } |
In model argument we can get our ejuploadbox API values like extensionsAllow, multiplefileSlect, cssClass etc.
Please find the below code snippet to access the model argument.
[javascript] function errorhandling(args) { alert(args.model.multipleFilesSelection); alert(args.model.buttonText); } |
Queries: how to set the size of the "Browse" button? How to set the position of the ejUploadBox within the browser window?
Sorry for the inconvenience caused. We didn’t provide any specific options for changing size and position of the upload box browse button. We have consider this as issue (“There is no option to change the size and position of the upload box”). We have logged an issue report for this. Fix for this issue will be available in our next service pack release which is expected to be rolled out at the end of the next month. We will notify you once our service pack release is rolled out. If you want the fix sooner please let us know, so that we can provide you patch for this fix on or before (27th November).
Query: how to alert the user if they have selected a file with extension not in the "extensionsAllowed" list?
We have analyzed your requirement. We can achieve your requirement using error event .We have prepared the sample based on your requirement and you can download this sample under the following location:
Sample: Uploadbox with Size
Regards,
Sasikala Nagarjan
Hi Randy Craven,
Thanks for the update.
We have analyzed your reported scenario. There is no arguments are passed to get the “id” of the upload box in the “complete” event. To get the id of the upload box’s div, please find the below code snippet.
function onComplete(args) { alert(“ID of the uploadbox”+ this.element[0].id); } |
In above code snippet this.element[0].id” returns the id of the uploadbox’s div.
Also, our next service pack release is expected to be rolled out at the end of the November month
Please let us know if you need any further assistance.
Regards,
Sasikala Nagarajan