Im trying to download the stl file directly to our private server, but when I paste the link to my php script, the file does not work. I make it work only if I download the file to PC, add .zip extension, unzip it and add .stl extension.
It is quite a strange behaviour because if I download the file directly, Im getting a normal .stl working file.
I use :
link = response.data.content.href; window.location=link; // this works } );
I paste the link to my php script that should download the file to our server using
file_put_contents(“userfiles/” . “44” . “/” . “test_download” . “.stl” , file_get_contents($link));
// this will download the file but to make it work, I have to add .zip, then extract and add .stl
The main issues seems download the file from your link to our private server, because if I download a stl file from another link to our server, the file works, but the issue seems the link from your server.
Did you had some previous experience with?