Download & Extend

Are files uploaded directly to remote servers?

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

Status:active» fixed

It definitely yes when you use cloud storage or FTP.

#3

Status:fixed» active

Recently, I found it's wrong.

Although I'm using FTP for initial container, it seems still will upload to local directory first.

d

The directory shows like this just after saving node.
dd

After refresh the page, it turns to.
dd

AttachmentSize
Screenshot from 2012-06-25 14:13:00.png 22.7 KB
Screenshot from 2012-06-25 14:12:07.png 17.01 KB
Screenshot from 2012-06-25 14:11:55.png 16.28 KB

#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

Status:active» closed (won't fix)