Page MenuHomePhabricator

Upload form forgets a file path when the upload failed because of lost of session (relation) data
Open, LowestPublic

Description

The upload of a file (as well as the upload of a page) fails often due to loss of session data.

In such cases, the file upload form remembers all text description fields including the new file name, but forgets the previously selected file path with original file name. It's a bit bothering to be forced to select the file again and again.

Event Timeline

SJu created this task.Jun 13 2015, 8:29 PM
SJu updated the task description. (Show Details)
SJu raised the priority of this task from to Needs Triage.
SJu added a project: MediaWiki-Uploading.
SJu added a subscriber: SJu.
Restricted Application added a project: Multimedia. · View Herald TranscriptJun 13 2015, 8:29 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I think this might be impossible to fix due to limitations of HTML. It's impossible to set the value of a file input (it can only be read), because that could potentially let the website "steal" arbitrary files from the user's computer.

Maybe try using UploadWizard rather than the Upload form? I think it doesn't have this issue, as it can check for the loss of session data from JavaScript and re-submit the files without refreshing the whole page.

Aklapper triaged this task as Lowest priority.Jul 23 2015, 1:56 PM
Restricted Application added subscribers: Steinsplitter, Matanya. · View Herald TranscriptJul 23 2015, 1:56 PM

Aklapper triaged this task as "Lowest" priority.

Can you elaborate please?

Can you elaborate please?

See T102358#1363194

Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 5:52 PM