much simpler content type storage

This commit is contained in:
alyssadev 2023-09-18 14:31:21 +10:00
parent c1742b384e
commit 51f1ae59da
2 changed files with 5 additions and 9 deletions

3
mimeul Normal file
View file

@ -0,0 +1,3 @@
#!/bin/bash
MIME=$(file -i "$1" | cut -f1 -d" " --complement)
curl -H "Authorization: $AUTH_KEY" $DEPLOY_HOST/$2 -F "u=@$1;type=$MIME"