Results 1 to 2 of 2

Thread: How to upload files in Json format only-EXTJS

  1. #1

    Default How to upload files in Json format only-EXTJS

    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:


    Code:
       <form enctype="multipart/form-data" action="/upload/image" method="post">
            <input id="image-file" type="file" />
        </form>
    but is there an option for only JSN format files to be uploaded and throw error may be for other file types.


    Thanks!

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    I know of no such option. Perhaps your server script could validate the files?

Similar Threads

  1. how to upload mulltiple files / extjs mvvc project
    By pkellner in forum Sencha Fiddle
    Replies: 3
    Last Post: 16 Sep 2014, 4:02 AM
  2. Replies: 3
    Last Post: 15 Sep 2013, 11:06 PM
  3. Using multi-upload, when second time to upload the files arrive null value, why?
    By andredecotia in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 6 Jan 2011, 5:58 AM
  4. Upload multiple files in extjs 3.x.x
    By chicano in forum Ext 3.x: Help & Discussion
    Replies: 8
    Last Post: 25 Mar 2010, 6:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •