Documentation ¶
Overview ¶
Package imager handles image, video, etc. upload requests and processing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImageUpload ¶
func NewImageUpload(w http.ResponseWriter, r *http.Request)
NewImageUpload handles the clients' image (or other file) upload request
func ParseUpload ¶
ParseUpload parses the upload form. Separate function for cleaner error handling and reusability. Returns the HTTP status code of the response and an error, if any.
func UploadImageHash ¶
func UploadImageHash(w http.ResponseWriter, req *http.Request)
UploadImageHash attempts to skip image upload, if the file has already been thumbnailed and is stored on the server. The client sends and SHA1 hash of the file it wants to upload. The server looks up, if such a file is thumbnailed. If yes, generates and sends a new image allocation token to the client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.