How to upload AR marker creator to server? - javascript

sorry if this is a stupid question; I'm still a student.
I'm trying to use Carnaux's nft marker creator (https://github.com/Carnaux/NFT-Marker-Creator), and upload it to my own server.
Basically I want a page that looks like this https://carnaux.github.io/NFT-Marker-Creator/#/ but on my own server.
I downloaded the files, but just uploading them to the server didn't work.
Do I have to use node.js? Any tips on how to configure that? Not sure where to start.
Edit:
Here's the link where I tried to upload the files to my test server
https://mar-test.000webhostapp.com/NFT-Creator-Web.html
You can upload an image, but not generate a marker.
I just downloaded the files from github by clicking the green "code" button and selecting "download zip", and then uploaded everything to the test server.
Seems like part of my problem is that I don't know how to use github to fork a repository. But shouldn't it work just by uploading the files to the server like this?

Related

How to check the extension of uploading file in vue.js

I want to check the extension of uploaded file. It is working fine but what if someone change the extension of uploading file. Like if someone change the .pdf extension to .png or .jpeg , then how to check this using vue.js. I have tried active storage validator gem but then there are many changes in my app. I want to write lesser code. If anyone have efficient approach, please share.

Why is my code to upload working locally but does not work after being uploaded to heroku?

I'm not really with my system to show this...
But it is that, the code is for uploading, and it works locally on locally, but on Heroku, the image being uploaded will appear but will be missing after some time
And when I check the file to which the upload is supposed to stay, it does not appear there
I think it because the Heroku filesystem is ephemeral
reference:
https://help.heroku.com/K1PPS2WM/why-are-my-file-uploads-missing-deleted#:~:text=The%20Heroku%20filesystem%20is%20ephemeral,from%20the%20most%20recent%20deploy

How to Upload file from local with Cypress

I'm new to Cypress, and i'm facing issues trying to upload a file.
I have a form which looks like this,
It will open a window form to select files to Upload.
So, How to I select a file and upload with this window form ?
I tried following the steps in the git issue but could get it to work.
I was looking into having the files stored in fixtures to allow easier access. (but not sure if this is correct)
Any help would be great
Thanks
This is not yet implemented, see this open issue: issue link.
There are however some hacky ways around that, and some third party packages that might help: cypress upload

download file from s3 as csv by means of javascript

I really think this is trivial one, but I just can't find the right answer.
I have a csv file on s3 bucket. I have link to it, which looks something like:
https://blabla-bucket.s3.amazonaws.com/imaginefolder/testfilename.csv?AWSAccessKeyId=111&Expires=222&Signature=333
Now I want to put a link to it. When user clicks, csv file download should start in his browser.
I tried the following:
<a download href="https://blabla-bucket.s3.amazonaws.com/imaginefolder/testfilename.csv?AWSAccessKeyId=111&Expires=222&Signature=333">Download</a>
And it works, but downloaded file is with txt extension.
I am not sure if the reason is in Amazon API configuration or in the way I am handling this ahref.
I saw that people recommend to use AWSJavaScriptSDK, But I am really interested to know if there is a way to do it by simple means.

iPhoneHTTPServer/CocoaHTTPServer File Uploads

I have managed to get the iPhoneHTTPServer sample within CocoaHTTPServer to work - I can display web pages, run JavaScript etc but what I cannot figure out is how to upload a file from my PC onto my iPhone.
I have looked at various JavaScript examples for "uploading files" but they appear only load files on the client side and don't actually upload files onto the server - ie - my iPhone.
Can somebody please provide me some example code that does this or some guidance as to how this is done?
OK! I found the SimpleFileUploadServer sample in the CocoaHTTPServer "Samples" folder.. I've been able to cut, paste and learn from that. All sorted.

Categories

Resources