Next: , Up: Upload files   [Contents]

16.1 Receive upload from client

(store-uploaded-files rc #:path (current-upload-path)
                      #:uid #f
                      #:gid #f
                      #:simple-ret? #t
                      #:mode #o664
                      #:path-mode #o775
                      #:sync #f)

rc is the route-context.

#:path is specified path to put uploaded files.

#:uid is new UID for uploaded files, #f means don’t change the default UID.

#:gid specifies new GID.

#:simple-ret? specifies the mode of return:

#:mode chmod files to mode.

#:path-mode chmod upload path to mode.

#:sync sync while storing files.