[File] Box.com file storage backend #49

Closed
opened 2015-08-19 01:21:59 +00:00 by jamie · 3 comments
jamie commented 2015-08-19 01:21:59 +00:00 (Migrated from git.hazaar.io)

Need to add support for box.com file storage.

Need to add support for box.com file storage.
jamie commented 2015-08-19 01:22:11 +00:00 (Migrated from git.hazaar.io)

Added ~9 label

Added ~9 label
jamie commented 2015-08-19 22:54:20 +00:00 (Migrated from git.hazaar.io)

Wow. Just..... wow....

The Box API is SHIIIIITTTTT....

Basically the big hurdle was there is no path resolution other then splitting a path into branches, and requesting info on the folder starting from the root folder and working down. So if a file is 20 folders deep it would require 22 requests just to get the file info. Ridiculous.

Also, when you list the contents of a folder, you only get very basic information about the contents, like name and ID. Then, to get other things like size and modification date you have to request the file info individually for each file. So if there are 100 files in the folder, yup, that's 100 requests just to get detailed information.

But lastly, and the real blocker that has made me ditch this, is that they do NOT expose mime types. So we know the file is there, it's name and it's size, yadda yadda, but not what it is.

Fucking......stupid.....

Wow. Just..... wow.... The Box API is SHIIIIITTTTT.... Basically the big hurdle was there is no path resolution other then splitting a path into branches, and requesting info on the folder starting from the root folder and working down. So if a file is 20 folders deep it would require 22 requests just to get the file info. Ridiculous. Also, when you list the contents of a folder, you only get very basic information about the contents, like name and ID. Then, to get other things like size and modification date you have to request the file info individually for each file. So if there are 100 files in the folder, yup, that's 100 requests just to get detailed information. But lastly, and the real blocker that has made me ditch this, is that they do NOT expose mime types. So we know the file is there, it's name and it's size, yadda yadda, but not what it is. Fucking......stupid.....
jamie commented 2015-08-19 22:54:20 +00:00 (Migrated from git.hazaar.io)

Status changed to closed

Status changed to closed
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/hazaar-mvc-old#49
No description provided.