I am looking for a way to implement the following custom functionality into my module:
Implement a hook that is recognized by Drupal 7 that will capture any document upload (intended to be saved to /sites/default/files/*) and redirect the upload to my custom off-premise storage solution.
If I wanted to create a Drupal module that redirects all file uploads to an outside storage service and all redirected files would be accessable via a URL, would these be the hooks I would need to implement?
Okay, so I was following the installation instructions and I understood that I should not only change the permissions on the settings.php file, but also on the site directory. When I did that the default directory disappeared. Yes, disappeared. I tried uploading the default directory again, and now the server won´t let me . I tried creating a new folder, uploading the contents (i can do that), but when i rename the folder to default again, I get an error, saying no such file or directory exists. I imagine that as a result of this, the installation process will not proceed.
It looks like user_external_login_register use incorrect assumptions about what will happen if you call user_load_by_name for none-existing user name. In modules/user/user.module:2087 we have following code: