Results 1 to 3 of 3

Thread: How to send PUT request on form submit when upload of an image is performed?

  1. #1
    Sencha User
    Join Date
    Jun 2014
    Posts
    2
    Vote Rating
    0
      0  

    Default How to send PUT request on form submit when upload of an image is performed?

    Hi,
    I am using ExtJs version 4.2.1 and for uploading of an image I use 'filefield' component. On submit of the form always the POST request is sent nevertheless I define PUT request method to be sent.

    When I remove 'filefield' element from the form then all works fine and PUT request is sent. Does anyone know how to implement sending of PUT request on form submit when 'filefield' element is present there?

    Thanks

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    9,519
    Vote Rating
    256
      0  

    Default

    File uploads are handled by a hidden iframe, which likely uses POST. You can read more about it here:
    http://docs.sencha.com/extjs/4.2.2/#...ata.Connection


    Join me at SenchaCon 2016!

  3. #3
    Sencha User
    Join Date
    Jun 2014
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Thank you for the reply. I changed my server side implementation and now I use POST method for updating image content.

Posting Permissions

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