Kaldari has submitted this change and it was merged.

Change subject: (bug 37108) Add the current time to the filename in FormData
......................................................................


(bug 37108) Add the current time to the filename in FormData

FormData sends the server *exactly* the filename given to it. This
is not helpful, because we don't care what the filename is on the
first step, since it might change later (and it had better, if we
get a duplicate error). But if the file's contents exists, we
can't fix that at a later step, so we'd better detect that error.
Turns out, the server will only return 'duplicate' if it finds
both, so we avoid that dilemma by giving the server a filename it
could never have seen before.

Change-Id: I1138f8f0394963d27552fc046b96200dad45ced1
---
M resources/mw.FormDataTransport.js
1 file changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Kaldari: Verified; Looks good to me, approved


--
To view, visit https://gerrit.wikimedia.org/r/8937
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1138f8f0394963d27552fc046b96200dad45ced1
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: MarkTraceur <[email protected]>
Gerrit-Reviewer: Eloquence <[email protected]>
Gerrit-Reviewer: Kaldari <[email protected]>
Gerrit-Reviewer: MarkTraceur <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to