1

Might I ask you what can be the cause and solution of:

the automatic dissapearing of "large" files (±50MB, such as an audio file) that I have manually put into the root folder of my Drupal website/installation, using a FTP-client?

Does this has something to do with CRON (just a wild guess)? Is it not smart to manually (FTP) upload files into the root folder? Should a module be used at all times?

  • 1
    check you file system path on your drupal site. :) admin/config/media/file-system – shrish Jan 30 '15 at 11:08
  • @shrish - Thanks for the relevant reminder. There is noted sites/default/filesby default, which is the same folder as user skh was referring to in the answer below. – Vincent Mia Edie Verheyen Jan 30 '15 at 11:42
  • Are you using code to integrate them with Drupal? If the managed file system thinks they are temporary it will delete them after a while. – Alfred Armstrong Feb 3 '15 at 11:54
  • @AlfredArmstrong - Thanks, would you know how to circumvent this, i.e.: how to make them permanent? If I understand what you mean by using code as hyperlinking to them via an HTML-page or using them in a JavaScript-code; then: yes, certain drupal nodes are integrating certain of these files. --- Lastly: what exactly do you call the managed file system? – Vincent Mia Edie Verheyen Feb 3 '15 at 12:16
  • 1
    I meant using PHP Drupal functions from the file APIs, so they are added to the file_managed table. If they are, and their status is 0, then they get deleted after a while. – Alfred Armstrong Feb 3 '15 at 12:20
1

Does this has something to do with CRON (just a wild guess)?

No, drupal won't delete files in the folder, it must be something else on your server.

Is it not smart to manually (FTP) upload files into the root folder? Should a module be used at all times?

Files should be in your files directory (usually sites/default/files) if you're uploading them via the UI so Drupal can manage them. If they're more static, they should be in a module/theme folder.

| improve this answer | |
  • Thank you for your answer. I repositioned them to sites/default/files; in the hope to solve the problem (30/1/2015) --- Unfortunately now (3/2/2015), I noticed the files disappeared once again (all the files I had manually put there, dissipated at once). – Vincent Mia Edie Verheyen Feb 3 '15 at 9:51
  • Is what you mean by "via the UI" using the API from the module File entity? Should installing this (I can't figure out how to use it) solve the problem? --- I don't have any WYSIWYG text editor module installed. – Vincent Mia Edie Verheyen Feb 3 '15 at 16:23
0

The problem was not related to Drupal. The problem was a "right" (and the claim thereof) reserved by my webhost:

However, we reserve a right to remove files larger than 5 MB, if some day we will start running out of disk space.

Perhaps this question is not very useful here on Drupal-Stackexchange any longer, since I was just too dumb to have checked my hosting policy?


A solution could be to put the files with a different host, like Dropbox or Google Drive. If you would have any suggestion of a good service, it would always be welcome.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.