Posted by JordanMagnuson on May 31, 2012 at 8:36am
4 followers
| Project: | Storage API |
| Version: | 7.x-1.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
Does this module upload files directly to remote servers (eg Amazon S3), or does it upload to a local tmp directory, then copy the file to the remote server? In other words, if I set a file field to use S3 storage, is my local server ever touched?
Comments
#1
The files are initially stored in container specified as the intial container in the class.
If the intial container is not actually present in the class then the files will be deleted from the initial container once they have been successfully propagated to all containers that are in the class.
#2
It definitely yes when you use cloud storage or FTP.#3
Recently, I found it's wrong.
Although I'm using FTP for initial container, it seems still will upload to local directory first.
The directory shows like this just after saving node.

After refresh the page, it turns to.

#4
URLs that take the form system/storage/serve/ are actually generator URLs - the file does not exist yet.
#5
You mean it's just some binary in temp or cache?
#6
no - the file doesn't exist yet so there can't be a url that points to it. the generator url creates the file in the initial container of the class and then issues an http redirect to the file.
#7