Compare commits
No commits in common. "develop" and "master" have entirely different histories.
@ -12,7 +12,7 @@ Run `make` and the binary together with the web frontend will be in the `build`
|
||||
|
||||
# Usage
|
||||
|
||||
Run the `s3share` binary with the `--help` flag to see the available options.
|
||||
Run the `s3browser` binary with the `--help` flag to see the available options.
|
||||
The `public` directory needs to be in the same directory as the binary.
|
||||
|
||||
S3Share requires two things:
|
||||
|
6
share.sh
6
share.sh
@ -36,10 +36,4 @@ SLUG=$(curl -s -u "$API_USERNAME:$API_PASSWORD" -X POST --header "Content-Type
|
||||
--data "{\"key\":\"$UPLOAD_FILENAME\"}" \
|
||||
"$ENDPOINT/api/share" | jq -r ".slug")
|
||||
|
||||
|
||||
MIME=$(file -i -b "$UPLOAD_FILE")
|
||||
if echo "$MIME" | grep "image" &> /dev/null; then
|
||||
printf "%s/s/%s.%s\n" "$ENDPOINT" "$SLUG" "${UPLOAD_FILENAME##*.}"
|
||||
else
|
||||
printf "%s/%s\n" "$ENDPOINT" "$SLUG"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user