Actually the insert from url use a $$url variable to reach the file and insert the content inside a container field.
So it is just a simple instruction, I've tried both with or without 'automatically encode url' option flagged.
The file is reachable, if I copy the url
inside the browser it starts downloading it as .fmp12 file.
What do I need to check exactly?
Is there any difference between using a live server and a localhost?
Basically inside the container there is a file update.fmp12.html
gdaquino, so if you export the file from the container, then open it, does it work ? if yes, I think that is kind of a cool way to get an update file !!!!
the download works but the file that i get is html instead of fmp12 and after it you cannot open it back!
If you export the file to the desktop once it's in the container, and then you remove the .html from the name, does it open in FMP ?
The OS will use the last extension to determine which application to use to open a file. If for some reason the .html extension is added to a file whose extension was .fmp12 for example, then the OS will try to open the file within the default browser.
I wonder why .html is added to the file name . From the information you provided, it's hard to figure out what is going on. Please tell us what version of FMP, the operating system name and the script contents.
I assume you uploaded a xy.fmp12 File to a web server. Your transfer program or the web server could have changed the file's suffix.
Maybe upload a zip-compressed file could change this behaviour.
Well, if you download via plugin, you have more options.
e.g. using MBS CURL functions (Monkeybread Software - MBS FileMaker Plugin: Component: CURL ), you could use the CURL.GetResultAsContainer function and get back the downloaded file to store in container.
It auto detects type by mime type.
Or is the server not configured to return the right mime type?
e.g. for Apache, in .htaccess you could add:
AddType application/filemaker .fmp12
to define a mime type for .fmp12 extension.
I put a zip file in the web server, the result is the same.
I'm working on a Mac with latest OS and Filemaker 14.
Web server is an Apache, don't know exactly which version
There are not so much instruction in this script, 1 is to assign a value to a variable $$url and another is to insert from url with that variable.
2 of 2 people found this helpful
Finally I discovered why.
It is an Apache server and the filename is case sensitive...