I have an HTML file that I wanted to convert into a QR code so that when a user scans it the website will load up (the website does not have a domain it is just an HTML file). I wanted the QR code scanner to treat it as a website and run it on the browser.
PS. The user shouldn't have the HTML file, the file shall be sent to the user and temporarily stored inside the phone's ram after scanning it.
Is it possible? And how do I do it?
CodePudding user response:
Only way you could do this would be to upload the file to a file sharing service. Make a QR code with that link. Have user download index.html and then run. Would make way more sense to just get a domain.
CodePudding user response:
there are multiple options that you can explore for distributing ur HTML. you don't necessarily need a domain. all you need it a hosting service. you can use for eg: Amazon's S3.
you can explore from among following options:
- any blob storage (eg: s3)
- gitHub Pages (https://pages.github.com/)
- heroku (free)
once you have a URL that renders your HTLM, its just a matter of creating a QR code using your URL as the input.
for that, you can can look into numerous free QR code generators online. eg: https://me-qr.com