petersirka / node-filestorage

Storage for storing uploaded files in node.js
MIT License
72 stars 12 forks source link

[enhancement] It would be useful if a user could update a file's custom field without updating the file itself. #4

Closed DavidEBest closed 10 years ago

DavidEBest commented 10 years ago

Currently, I'm using node-filestorage to store uploaded files for a web service I'm developing.

I intend to store user tags/description/etc. within the custom property. Those properties are editable and I'd like to be able to pass them to the webservice and not have to resend the file (or manipulate the file on the disk) to save those property changes.

Is that a reasonable use case?

petersirka commented 10 years ago

Hi @DavidEBest, A custom property can contain max 1000 characters. Primary is file-storage for storing files and its small additional data.

For your case use NoSQL embedded database (https://github.com/petersirka/nosql). How many files do you want to store on the disk? NoSQL supports binary files but hasn't any logic for tens of thousands files (because db stores those files into the one directory and "file-storage" divides files into directories).

DavidEBest commented 10 years ago

I didn't realize there was a limit on the length of the custom field. I have not run into it, as I am still doing proof of concept development.

I believe I should find an alternative system. Thanks!