Essence of the question:
There is an announcement submission form. You need to upload photos through drag and drop. But you need to do this when sending all form fields, i.e. at a time. Photos should be uploaded without Ajax, because There are no announcements on the server at the time of loading the images. Is it possible to implement such functionality? The browser does not allow javascript to change the sent files.
drop
can only listen to JavaScript, respectively. further only JS'om handle it. Here someone made a dirty hack : above the drop zone, the usual file input is being pushed under the arm:) It is ingenious, but I wouldn’t do that to production. - Sergiks 2:42 pm