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?

    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
    3,400
    Vote Rating
    62
    Gary Schlosberg is a jewel in the rough Gary Schlosberg is a jewel in the rough Gary Schlosberg is a jewel in the rough

      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
    Get on the Fast Track with Sencha Training http://sencha.com/training

    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

  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