Timestamp of image upload is missing, unclear documentation on how to add it myself.
See original GitHub issueUse case: Unable to sort images by upload date client side.
Suggestion: Track upload date server side and include in db, and serve with Image object client side.
Documentation is missing: How to manually add properties to an image server side (transform object during upload)
It is not clear to me if it is appropriate to add properties to a file in the onBeforeUpload hook server side (examples are only explicit about how to call other functions, not about how to transform the file).
Documentation is hard to find: How to manually add properties to an image client side (transform object during upload) (things like user ID, other relevant info) /docs/addFile.md
I looked at the Insert api with onStart, but no example is linked from this page: /wiki/Insert-(Upload). It would be nice if the insert api row where meta is listed referenced via link /docs/addFile.md.
Requests:
- Can a server side UTC automatic timestamp on upload be added to the lib by default? This is essential, common, expected functionality.
- Can you tell me how to add this myself (transform an image server side before upload)?
- Can you document this (more explicitly with an example if it can be done) and in an obvious place? Other libraries usually dedicate a main section of the introduction to transforming objects along with the other major points in the typical pipeline (installation, configuration (storage and options), uploading (from dom/js), retrieving (in dom/js), downloading, transforming, post-processing).
Actually, it would be nice if the main page had those main sections with massive bold titles…
Related Evidence: https://github.com/VeliovGroup/Meteor-Files/issues/459 You can see here another used had this use case, and had trouble determining how to do it. Although the meta object is how to add client-side attributes, and it is not obvious in docs how/when to add things to meta. Also, I would like to add server side UTC timestamps…not client side JS timestamps that may be completely incorrect or faked by a user.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)

Top Related StackOverflow Question
FYI:
You are welcome to ignore all feedback from all your users, but in the end it will only hurt you. Some individuals just do not take feedback well I suppose, sad to see you become so defensive over your inability to take feedback.