Q: What are anonymous uploads?
A: If you upload without an authorization token (that is, if you don't have an account), files are uploaded
anonymously.
Anonymous files have a max size limit and are automatically deleted after some time. In addition, these
files are also subject to scans to filter out malware or other illegal files.
Q: How do I store files non-anonymously?
A: You need an account. If you want one, then ask me nicely.
Q: Is there an API?
A: Yes:
API PATH: https://api.xfile.moe/files METHOD: POST POST DATA -> FILE=(The file to upload.) CURL EXAMPLE: curl -F 'file=@file.ext' 'https://api.xfile.moe/files'
There is also a simple Bash script. Don't forget to chmod +x it :)
#!/bin/bash me=`basename "$0"` if [ "$#" -ne 1 ]; then echo -e "USAGE:\n$me <file name>" exit fi FILE=$1 if [ ! -f $FILE ]; then echo "File not found!" exit 1 fi res=`curl -s -F "file=@$FILE" "https://api.xfile.moe/files"` echo $res
Q: Need to takedown a file/report abuse.
A: Mail me @ files@xfile.moe with the name of the file.