1. #1
    Sencha User
    Join Date
    Jun 2014
    Posts
    2
    Vote Rating
    0
    Iurii Iakymchuk is on a distinguished road

      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,255
    Vote Rating
    251
    Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of

      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
    Iurii Iakymchuk is on a distinguished road

      0  

    Default

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

Thread Participants: 1