You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to move files from one Marketo instance to another. Marketo support said to use the api. The PHP code for retrieving files and folders works, but when I try to create the file from one marketo instance onto the new one using the api, I get a couldn't open file .... I am providing the file url that I get in response from the rest api for querying files.
The text was updated successfully, but these errors were encountered:
Unfortunately, you cannot simply pass an URL to the Create File endpoint. You will need to download the file from source instance, and then upload that file to target instance. Before uploading to target instance, you will likely have to mirror the source folder structure in the target instance (either by hand or by using Create Folder endpoint).
When you upload a file using Create File endpoint, you must use Multipart file semantics. Easiest way to do that is to use CURLFile class (http://php.net/manual/en/class.curlfile.php). If you get it working let us know and we can replace the Create File sample with your code :)
Trying to move files from one Marketo instance to another. Marketo support said to use the api. The PHP code for retrieving files and folders works, but when I try to create the file from one marketo instance onto the new one using the api, I get a
couldn't open file ...
. I am providing the file url that I get in response from the rest api for querying files.The text was updated successfully, but these errors were encountered: