-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Failed to import photo via link #1149
Comments
I guess I know the reason for the problem. The issue should be fixed after #1055 and #1101 have been merged. Sometimes the PHP function After #1101 the PHP process will identify itself as Without #1101 it randomly depends on your PHP installation, version, etc. if or if not and if yes what |
Interesting. For what it's worth, it works for me here (the very URL pointed by the OP). |
@kamil4 Is the PHP setting I encountered the problem myself when I was testing #1101 and tried to import images from an URL. Sometimes it worked, sometimes it did not. I found the right solution on Stack Overflow which led me to the User Agent Policy of Wikipedia et voila ... problems gone. Anyway, I think we should explicitly set the user agent to a proper value and not rely on a lucky PHP configuration. Anyway this was only a wild guess. May be the problem of the TO has another root cause. |
Thanks a lot for the quick response and yes, setting the user agent to a proper value did actually solve the issue. I would have never found this! :) |
@ildyria I actually don't see this as a documentation issue. I would actually prefer to set the setting to a proper value programmatically. Rationale:
I will try to bring forward a new PR independent of my huhe re-factoring which solves this problem. |
Also works for me. :) |
Detailed description of the problem
While trying to update our app package for Cloudron to Lychee version 4.3.6, importing a photo from a link fails with:
This works strangely in version 4.3.4. The folder at
/app/code/public/uploads/import/
is writeable by www-data (apache user)Uploading photos also works fine.
I am no laravel expert but it seems to be using the copy() from laravel, however I don't know how to get more error information besides what is paste above. Does anyone have any idea how to debug this further? Very happy to provider more information if I know what and how.
Output of the diagnostics
The text was updated successfully, but these errors were encountered: