I want to organize the workflow only through the REST API. I have a form that allows to upload image (enctype="multipart/form-data"). How do I handle this form via backbone? Help me please, how I can to serialize it into JSON with a file field.
Thanks. Vitaliy
IMHO, you cannot serialize a file into JSON. If you need to send some data along with the file you can send them as query params with POST method.