some questions about uploader
Anastasia Cheetham
a.cheetham at utoronto.ca
Tue May 13 13:46:56 UTC 2008
Justin, these are some excellent questions! Thanks so much for doing
such a thorough job of testing.
I have some technical questions for Eli:
>> b) If the partial download is not deleted, what happens to it
>> if the user clicks "Cancel" (or clicks the remove button) after
>> clicking pause? Will the file be left in the queue, will it be
>> deleted from the system, or will it just sit on the hdd for someone
>> else to delete?
>
> My recommended behavior would be that when the back-end gets a
> "Cancel" that it should discard the entire upload session since that
> is consistent with what Cancel usually means.
I assume this would mean actually deleting any already-uploaded files
from the server (e.g. if I pause the upload after 2 of 5 files have
been uploaded, then cancel, those 2 uploaded files would be removed
from the server).
Does the underlying SWFUploader (which carries out the actual
communication with the back-end) allow this action? I might be
surprised if it does, as this seems like quite a security risk!
>> 3) Currently the user is able to add multiple instances of the same
>> file (with the same name) to the file queue and upload them. I am
>> assuming that this should not be allowed. Will there be some error
>> message given to the user? Similarly will the user be able to
>> upload a file with an identical name and type to one that already
>> resides in the upload folder or will they be warned? Unfortunately
>> I cannot test this out myself right now, as the upload process is
>> only simulated.
>
> Here is the scenario that the uploader is supposed to be able to
> support: user selects file A from folder Foo, and then selects file
> A from folder Bar. Foo/A and Bar/A are different files
>
> We could have a quick and dirty rule in the Uploader that says we do
> not accept two files with the same names, or (better) two files with
> the same names of the same exact size.
What does the underlying SWFUploader object do with files of the same
name? Does it just ship them off to the server and rely on the server
to let it know if the server can't/doesn't want to handle the situation?
--
Anastasia Cheetham a.cheetham at utoronto.ca
Software Designer, Fluid Project http://fluidproject.org
Adaptive Technology Resource Centre / University of Toronto
More information about the fluid-work
mailing list