Closed dfabulich closed 6 months ago
Right. The ifarchive-commit
request now looks like
https://ifdb.org/ifarchive-commit?ifdbid=1235531&path=if-archive/books/the-book&key=YYYY&tuid=abc123&original_filename=stuff.txt.orig
There's one thing to watch out for, though. If a file is uploaded more than once, we'll have multiple upload records. Since the primary key for this is the file MD5, we can't tell the records apart.
Therefore, it's possible that the request will come in with multiple tuid
or original_filename
keys. Or none, conceivably.
(There will be exactly one ifdbid
key, though.)
Apropos https://github.com/iftechfoundation/ifdb-suggestion-tracker/issues/448
In order for IFDB to do the fixup automagically, we'd need to know the original filename of the file, so IFDB's Play Online button can link to it directly via unbox.
Perhaps pass it in an
original_filename
URL parameter?