Skip to content

Realswitzer/uploadtomydesktopfolder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

literally just a way to upload silly shit to my desktop folder

usage

# File upload
curl -X PUT \
  -H "Authorization: $AUTH" \
  -F 'file=@./file.txt' \
  http://localhost:3001/file

# Text upload, autogen file name
curl -X POST \
  -H 'Content-Type: text/plain' \
  -H 'Authorization: $AUTH' \
  -d 'text' \
  http://localhost:3001/text

# Text upload, custom file name
curl -X POST \
  -H 'Content-Type: text/plain' \
  -H 'Authorization: $AUTH' \
  -d 'text' \
  http://localhost:3001/text/name

# Upload text contents, autogen file name
curl -X POST \
  -H 'Content-Type: text/plain' \
  -H 'Authorization: $AUTH' \
  -d '@file.txt' \
  http://localhost:3001/text

awesome

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors