fileio icon indicating copy to clipboard operation
fileio copied to clipboard

print as raw (instead of downloading)

Open bree29 opened this issue 4 years ago • 2 comments

Hey there !

I do understand file.io is a file hosting, so it's not made for download them as raw ; there are other services for that.

I was wondering if it is possible, when uploading files (as .txt, or application/octet-stream files), to print them as raw in the browser ? by renaming it .html, it did print as raw, but... as html, so without end of line...

Thanks ! Breedug

How to reproduce :

ls -1ash > hello.log
curl --progress-bar -F "[email protected]" https://file.io/?expires=1w | grep -Eo "(http|https)://[a-zA-Z0-9
./?=_-]*" | cat

Then open the link in browser... It downloads the file, doesn't print them.

bree29 avatar May 08 '20 14:05 bree29

Well met! Lemme look back at what fileio may support. Much of the ability to view in-browser is dictated by either the return content-type header or extension+magic bytes some browsers will read to try to view vs d/l.

hrbrmstr avatar May 08 '20 14:05 hrbrmstr

Well, thanks @hrbrmstr ! It would be really appreciated :-)

bree29 avatar May 10 '20 14:05 bree29