uploadServer | R Documentation |
Watch for new files in MOTUS_PATH$UPLOADS
;
and when a new file is found, queue a job to process it.
uploadServer(tracing = FALSE, fileEvent = "CREATE")
tracing |
logical scalar, default FALSE. If TRUE, enter debug browser before handling each new file upload. |
fileEvent |
character scalar; default: "CREATE". The
last filesystem event generated by the external program which
is placing files in the |
This function does not return; it is meant for use in an R
script run in the background. After each subjob is handled,
the function checks for the existence of a file called
MOTUS_PATH$UPLOADS/kill
. If that file is found,
the function calls quit(save="no"). The file will also
be detected within the call to feed() when the queue
is empty, because it is located in the watched folder.
this depends on some other process placing uploaded files
into the folder MOTUS_PATH$UPLOADS
. We're using a
patched version of http://www.projectsend.org whose last
task for an uploaded file is to create a symlink to it in
MOTUS_PATH$UPLOADS
, and this generates a "CREATE" event.
John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.