explooosion / poe-hideout-sharing

Path Of Exile Hideout Sharing Website.
https://poe-hideout.firebaseapp.com
MIT License
6 stars 0 forks source link

Pastebin link #6

Open zombodotcom opened 5 years ago

zombodotcom commented 5 years ago

Could you also add a pastebin link option instead of only .hideout file upload?

explooosion commented 5 years ago

Hi! @zombodotcom

What is a pastebin link for? A file or just raw data in browser?

Example:

  1. https://pastebin.com/raw/zpRjfhSz
  2. https://pastebin.com/zpRjfhSz
zombodotcom commented 5 years ago

https://www.pathofexile.com/forum/view-forum/hideouts

https://www.pathofexile.com/forum/view-thread/1059888

Seems like someone made another hideout sharing site, but with .hideout https://hideoutshowcase.com

https://pastebin.com/iHmkgUxw

pastebin is a text sharing site. its also used on Path of Building to import builds.

Might help reduce file data transfers if you can pull the data from pastebin.com instead of grabbing the file from firebase

explooosion commented 5 years ago

Using pastebin is a good ideal for reduce file data transfers, but I can not read the data from pastebin through http Fetch request [GET].

Because of CORS, only can create a link to pastebin. So I can't analyze pastebin's file.

I think this is an another choice. but CORS is a shortcoming.

explooosion commented 5 years ago

By the way, I plan to unuse firebase storage.

I can parse the .hideout file during uploading, so I'll save to database service instead of storage service. When user request to download, just convert data from database to .hideout file.😊

And also thinking about compress tool with lz4 ...etc.

*.Firebase storage service has a strict limit in download and upload.

zombodotcom commented 5 years ago

What's a good database service?