-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catalog Image Upload Issue #24
Comments
As far as I understand, FileWrapper requires a local image/file. It sounds like you could use your own (outside of Square) request to download the file locally, and then use FileWrapper to attach it, but that would be outside of Square. |
Thanks for the response @StephenJosey. I tried that solution in the code snippit above however.
I'm downloading the image from the url and putting it into my |
Ah, sorry, I totally missed that ha. What's your app id? I can see if there's anything obvious going on in our logs. |
Ah thanks - I believe my app id is Everything above is being done on the sandbox server as well. Not sure if there is anything different about that environment either. Thanks! |
Actually, I think maybe it's because you're not passing in a
instead? I have not tested this so apologies if this doesn't help. |
@StephenJosey you're my hero, that worked! I assumed it would have picked the It might be a good idea to make that field required in a future version since the default value is not a supported type of the api. Really appreciate the support. |
I'm attempting to upload an image from an s3 bucket to a catalog image. Following the docs here's what I have:
However I'm getting the following error from square after I do the upload even though the file type of the provided file is a .jpeg (ie a supported type).
In an ideal world I'd like to just supply the public image url from my bucket to the catalog uploaded but under the hood it looks like
FileWrapper::createFromPath()
is usingCurlFile
which my understanding is does not support remote file upload. https://github.com/square/square-php-sdk/blob/master/src/Utils/FileWrapper.php#L63I've been hacking at this for quite some time now without a good solution to show for it so any advice would be much appreciated. Thanks!
The text was updated successfully, but these errors were encountered: