View Full Version : How to upload files in Json format only-EXTJS

27 Apr 2017, 11:28 AM
Is there any way to configure the uploading format only in JSON and restrict any other file type.
So far Im using simple js to upload the file:

<form enctype="multipart/form-data" action="/upload/image" method="post">
<input id="image-file" type="file" />

but is there an option for only JSN format files to be uploaded and throw error may be for other file types.


Gary Schlosberg
27 Apr 2017, 3:40 PM
I know of no such option. Perhaps your server script could validate the files?