Name of uploaded files
-
@mechanix you have to change core for that.
https://github.com/NodeBB/NodeBB/blob/master/src/controllers/uploads.js#L207
-
the numbers are kind of necessary, since you might upload many files of the same name.
-
@bentael said in Name of uploaded files:
the numbers are kind of necessary, since you might upload many files of the same name.
I understand. OK, but how can I get a time stamp before the file name then. Right now there are only random numbers.
-
@julian said in Name of uploaded files:
The numbers are actually a timestamp, they are not random.
They're not actual UNIX timestamps, but similar; Just with milliseconds instead of seconds. This might have confused @mechanix
-
@frissdiegurke said in Name of uploaded files:
@julian said in Name of uploaded files:
The numbers are actually a timestamp, they are not random.
They're not actual UNIX timestamps, but similar; Just with milliseconds instead of seconds. This might have confused @mechanix
Exactly. I understand that Unix time is great to have unique file uploads but it would be more intuitive to use standard time stamps.