Skip to content
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

Image background Issue #2

Closed
Dementetech opened this issue Oct 11, 2010 · 3 comments
Closed

Image background Issue #2

Dementetech opened this issue Oct 11, 2010 · 3 comments
Assignees
Labels

Comments

@Dementetech
Copy link

Hi,

I'm traing to upload a background, im using the example 'images.php', but the system always return error 403 with this message:

" There was a problem with your background image. Probably too big."

I upload images of small sizes 15kb but either work.

could someone explain me what im doing wrong? or if curl need some extra configuration to work.

@Dementetech
Copy link
Author

I found a solultion, but is estranger. in the example images.php have this line

$params = array(
'image' => "@{$_FILES['image']['tmp_name']};type={$_FILES['image']['type']};filename={$_FILES['image']['name']}",
);

but i foun in other library that put and "@" before the parameter name, like:

$params = array(
'@image' => "@{$_FILES['image']['tmp_name']};type={$_FILES['image']['type']};filename={$_FILES['image']['name']}",
);

and work for me, i dont know if is a curl bug or a different curl version.

from my phpinfo..
cURL support enabled
cURL Information libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

@themattharris
Copy link
Owner

It could well be an issue with the version of CURL you have running. Mine is version 7.20.0. I'll look into this further but i'm glad to hear to you got it working.

@themattharris
Copy link
Owner

Closing this as I haven't had other reports of needing this. I know PHP 5.2 changed some things with how this was handled so i'm curious if that was the cause. If anybody finds out more information add a comment and i'll try and add a workaround.

@ghost ghost assigned themattharris Dec 30, 2011
sykezz pushed a commit to sykezz/tmhOAuth that referenced this issue Dec 26, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants