Extract media file submission logic into common library
|Reported by:||joar||Owned by:||Elrond|
Take a look at the views for /submit/ and /api/submit/.
The media file submission logic between them is largely duplicated.
This logic should be moved to
This logic should be adapted so that it covers both the /submit/ and /api/submit use-case.
The /submit/ and /api/submit/ views should be adapted to use library tool for media file submission.