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

Extension in TYPO3 11.5 results in error, if file is added via fileslist #9

Closed
PLACEBOBRO opened this issue Apr 4, 2023 · 3 comments

Comments

@PLACEBOBRO
Copy link

PLACEBOBRO commented Apr 4, 2023

If I want to add a TikTok video via fileslist using the URL, it results in the following error:

Bildschirm­foto 2023-04-04 um 11 22 14

The used TikTok link was:
https://www.tiktok.com/@umihito/video/7217355553817857285?lang=de-DE
Also without the URL-parameter '?lang=de-DE', the error is showing up

System: TYPO3 11.5.23, PHP 7.4
Extension Version: 1.0.0

@ayacoo
Copy link
Owner

ayacoo commented Apr 4, 2023

Thanks for your feedback! I reproduced it once locally and got this message:

PHP Warning: rename(/var/www/html/var/transient/online_mediacxTNvS,/var/www/html/public/fileadmin/tiktok/_werbung__heute_machen_wir_mit_der_kchenmaschine_von_@boschhomede_einen_leckeren_karottenkuchen_mit_selbstgemachten_marzipan-karotten_als_dekor__seit_rund_zwei_jahren_gibt_es_keinen_tag__an_dem_ich_meine_kchenmaschine_von_bosch_nicht_nutze._sowohl_im_allt.tiktok): File name too long in /var/www/html/public/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php line 803

I'll take care of a bugfix release and then you can test it again.

ayacoo added a commit that referenced this issue Apr 4, 2023
ayacoo added a commit that referenced this issue Apr 4, 2023
@ayacoo
Copy link
Owner

ayacoo commented Apr 4, 2023

@PLACEBOBRO I played out a new version that limits the file name to 100 characters. Please see if this helps you with your problem.

@PLACEBOBRO
Copy link
Author

I've tested out a few links with longer descriptions.
Looks like it's working! 🚀
Thank you for the quick fix!

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

2 participants