java.lang.Object
com.aoapps.cdn.data.Uploads
Manages access to the uploads directory.
Note: the uploads directory is excluded from replication inside csync2.cfg
-
Method Summary
Modifier and TypeMethodDescriptioncreateUploadFile
(ContentType contentType) Creates a new upload file, which will be empty.toString()
-
Method Details
-
toString
-
createUploadFile
Creates a new upload file, which will be empty. This upload file may be used in subsequent calls to add a new resource. By using these upload files, it ensures that data starts within the same filesystem and has the option to be efficiently moved into place instead of copying data.When supported, the new file has permissions set to expected values.
- Parameters:
contentType
- The new file will have an extension for the given content type.- Throws:
IOException
- See Also:
-