Importing the new form.
Slightly changed the construction of json_data.
=> TrackForm() has been deleted because has no utility here (form sent via AJAX).
the success = True now is made just after the for loop finishes.
Created a function that manages the saving of the attachment via AJAX.