744 Forum

Apron => Pit => Topic started by: Will on Mon, 25 May 2020 15:36

Title: Hoppie's file upload service: question
Post by: Will on Mon, 25 May 2020 15:36
Hello Hoppie,

Just curious, are there any problems if someone uploads a file that has the same name as a file that's already been uploaded? I've been taking pains to make sure that all my uploads have unique names, and I'm just wondering if that step is necessary.

Thanks, and have a great holiday weekend!
Title: Re: Hoppie's file upload service: question
Post by: Jeroen Hoppenbrouwers on Mon, 25 May 2020 15:40
Well it flat out overwrites the previous one... it depends on the situation whether that is a problem.    :-)

Correcting an upload is a useful feature. I think we have to live with the possibility of accidental overwrites. Setting up a complete login system to keep separate name spaces etc. is too much of a burden, I think.


Hoppie
Title: Re: Hoppie's file upload service: question
Post by: Will on Mon, 25 May 2020 15:53
Good to know.

My screen capture tool assigns the generic name "Capture.JPG" to every file it creates, and I just noticed that another user recently uploaded a file called "Capture.JPG."

So for anyone who is reading this: if you want to reduce the risk that your files will be overwritten, you may want to use a name that's likely to be unique on Hoppie's system.

(If your files do get overwritten, then your old post will display someone else's file.)
Title: Re: Hoppie's file upload service: question
Post by: Hardy Heinlin on Mon, 25 May 2020 16:02
Suggest to manually add date and UTC numbers to the file name.

202005251702-hello.jpg
Title: Re: Hoppie's file upload service: question
Post by: Jeroen Hoppenbrouwers on Mon, 25 May 2020 17:01
I can automatically add those, too. Shall we open a vote?


Hoppie
Title: Re: Hoppie's file upload service: question
Post by: Will on Mon, 25 May 2020 17:10
I vote for incorporating the time stamp into the filename automatically.
Title: Re: Hoppie's file upload service: question
Post by: martin on Mon, 25 May 2020 18:31
Quote from: WillI vote for incorporating the time stamp into the filename automatically.
Good_Idea_3141592653589.

Cheers,
Martin
Title: Re: Hoppie's file upload service: question
Post by: Jeroen Hoppenbrouwers on Mon, 25 May 2020 18:49
2020-05-25_17.45.30_implemented.py