-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add command line interface to upload videos #29
Conversation
… -h in view/mini-upload-form for instructions on use or read on... Use: php -f upload.php -u <user> -f <file> [-d <description>] [-g "group1[,group2]] [-c] [-h] -u user valid username -f file input filename -d descr description -g group(s) comma-separated numerical groups for which this item will be visible, item will be public if this is left out -c copy original to destination directory (file will be moved if this is left out) -h this help message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good
The '-f' parameter tells php to parse and execute a file:
Add a double dash after
|
With double dash works perfect. |
Try again with the double dash to see if it works for you with BTW, I notice a lot of files with DOS/Windows line endings, do you edit on Windows? |
Double dash works fine but the -f parameter is unnecessary on ubuntu
Em 5 de jun de 2017 15:37, "Frank de Lange" <[email protected]>
escreveu:
Try again with the double dash to see if it works for you with -f, it
should. I'm using Debian, not that far from Ubuntu.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARLMzTktIyg24ywxwRAguE1JLAqvgy-xks5sBErigaJpZM4NvbzH>
.
|
From
In other words, leaving out |
Add command line interface to upload videos. Use php -f upload.php -- -h in
view/mini-upload-form
for instructions.The -g parameter takes a comma-separated list of NUMERICAL groups (group IDs, actually) as argument, this due to the current absence of an easy way to get groups by their name, this can be changed when such has been implemented. I have not done this yet as there are things of higher concern, eg. the abundance of SQL injection opportunities in the code...).
The easiest way to use this is to call the php code from a script, like so:
(adjust
srcdir
andwww-data
to your environment)