Currently, TinyBrowser does not register the files uploaded through its interface with Drupal (inside the file_managed table). At a quick glance, it seems that it does not use D7's FIle API at all (but I may be wrong). This is problematic and it may create incompatibilities with other modules (e.g., Media does not “see” the files uploaded through TinyBrowser).

Is revising the API for uploading files already planned?

Comments

pixture’s picture

We do not have a plan to use file upload API because

1) TinyBrowser is originally an external plugin which was designed to work with various software. It does not rely on API of any specific software. TinyBrowser module is designed to be a bridge between TinyBroswer plugin and Drupal.

2) I think it's a bad design if a module totally rely on file upload module to keep track of file added/deleted. It's OK to use file upload API but should not 100% rely on it. Instead, it should search and pick up whatever files and directories there. Otherwise, you will have a big problem when you add such module to a site later, or when you disable the module for a certain period and enable it later. It could happen that user/admin may want to add/delete files from public file directory (and sub-directories) manually without using Drupal, when you move your site, or when you switch the server.