0

I have a form with enctype = "multipart / form-data". I need to send it to the REST API for uploading. The server is using Django and piston. Advise me how best to do this please. As of JavaScript (backbone) to serialize it into JSON with the file. Or is this not possible? Maybe I need to separately upload files, get their ID and then send them via REST only?

cdeszaq
  • 30,869
  • 25
  • 117
  • 173
moskrc
  • 1,220
  • 1
  • 12
  • 23
  • 2
    The jQuery AJAX methods do not support file uploads. http://stackoverflow.com/questions/2320069/jquery-ajax-file-upload – CoderMD666 Nov 17 '11 at 18:17

1 Answers1

0

You can have a plugin to do it, don't you think?

http://lagoscript.org/jquery/upload/demo?locale=en

Junior Mayhé
  • 16,144
  • 26
  • 115
  • 161