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

File name too long or not writable #43

Open
apeman76 opened this issue Aug 2, 2021 · 0 comments
Open

File name too long or not writable #43

apeman76 opened this issue Aug 2, 2021 · 0 comments

Comments

@apeman76
Copy link

apeman76 commented Aug 2, 2021

So im having a issue saving a image with a long name, if I do:

$curl->download('<redacted>/MlOAemd1rvXUnph3GjWS8ArwfqWzdkaRRYYcAigXz8fGKyd54v4zzvv3mXG1GlmZhV8x11YjsoRnHJVi6-QoBdGio5Ji-ulo4ozZ6UL9FPCU30FFvDFtFEiJEoeYxoMiE5XlIO1OSvTMpVlKiX6XK4feSFQ58hpf91h1RXXONk-KxUQzuLsyjR5pPJzOoLURB_nCSzgxjRTQEz6JJoJ6lMssWTKG6BqqCLZWtSmN-xsmfGBti2-awaFfv4kdUqHxx4jmbJ05z5hiQ1hm8084lSG6yQ4cBUruigdS9QSjJZjhP-56XeWO19dBZmVmRMchwO0VujgtCido7GPsJI2D1Q.jpg', 'data');

I get this error:

PHP Warning:  fopen(data/MlOAemd1rvXUnph3GjWS8ArwfqWzdkaRRYYcAigXz8fGKyd54v4zzvv3mXG1GlmZhV8x11YjsoRnHJVi6-QoBdGio5Ji-ulo4ozZ6UL9FPCU30FFvDFtFEiJEoeYxoMiE5XlIO1OSvTMpVlKiX6XK4feSFQ58hpf91h1RXXONk-KxUQzuLsyjR5pPJzOoLURB_nCSzgxjRTQEz6JJoJ6lMssWTKG6BqqCLZWtSmN-xsmfGBti2-awaFfv4kdUqHxx4jmbJ05z5hiQ1hm8084lSG6yQ4cBUruigdS9QSjJZjhP-56XeWO19dBZmVmRMchwO0VujgtCido7GPsJI2D1Q.jpg): failed to open stream: File name too long in /vendor/stefangabos/zebra_curl/Zebra_cURL.php on line 2763
PHP Warning:  curl_setopt_array(): supplied argument is not a valid File-Handle resource in /vendor/stefangabos/zebra_curl/Zebra_cURL.php on line 2791

but if I do:

$curl->download('<redacted>/MlOAemd1rvXUnph3GjWS8ArwfqWzdkaRRYYcAigXz8fGKyd54v4zzvv3mXG1GlmZhV8x11YjsoRnHJVi6-QoBdGio5Ji-ulo4ozZ6UL9FPCU30FFvDFtFEiJEoeYxoMiE5XlIO1OSvTMpVlKiX6XK4feSFQ58hpf91h1RXXONk-KxUQzuLsyjR5pPJzOoLURB_nCSzgxjRTQEz6JJoJ6lMssWTKG6BqqCLZWtSmN-xsmfGBti2-awaFfv4kdUqHxx4jmbJ05z5hiQ1hm8084lSG6yQ4cBUruigdS9QSjJZjhP-56XeWO19dBZmVmRMchwO0VujgtCido7GPsJI2D1Q.jpg', __DIR__ . '/data/temp.jpg');

I get this error

PHP Fatal error:  "/data/temp.jpg" is not a valid path or is not writable in /vendor/stefangabos/zebra_curl/Zebra_cURL.php on line 760

Is there any known fix for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant