upload SVG images error message
- english4ar.com
- Sr. Bludit
- Posts: 47
- Joined: Fri Apr 15, 2016 1:46 pm
- Contact:
upload SVG images error message
'.$->g.............
v1.3
'.$->g.............
v1.3
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
Has it worked before? Uploading SVG files can be a security risk. Therefore it's possible that it is not enabled by default.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
SVG format is not supported.. I will check the alert with the Arabian language.
the svg format is supported now, have you tried?
Yes I have tried it dieg. I get an alert box popup that informs me only jpg, jpeg, gif and png are supported. I can see the upload support for svg in uploader.php (under the folder ajax) but I still get this message every time I try to upload any svg:
Error. Supported image file types: *.(jpg|jpeg|gif|png)
Try to add the svg format in this files.
https://github.com/bludit/bludit/blob/m ... -v8.js#L33
and let me know if works. thanks
https://github.com/bludit/bludit/blob/m ... -v8.js#L33
and let me know if works. thanks
Hi diego, thanks for your help.
Just changing that line in the js file did not do it on its own. It enabled me to upload the svg but there was no thumbnail for the uploaded file and trying to insert the resultant image into a post just came up as undefined.
So I had a look in my error logs and noticed a symlink error
Line 76 of uploader.php creates a symlink of the the uploaded svg file in the thumbnail folder. Since this wasn't working I just changed the command to copy and bobs your uncle - upload complete and without error!
Out of interest - what is the gain in symlinking instead of just copying?
Just changing that line in the js file did not do it on its own. It enabled me to upload the svg but there was no thumbnail for the uploaded file and trying to insert the resultant image into a post just came up as undefined.
So I had a look in my error logs and noticed a symlink error
Code: Select all
PHP Warning: symlink(): Cannot create symlink, error code(1314)
Out of interest - what is the gain in symlinking instead of just copying?
the symlink is like a direct access to the original file, with the symlink you are not copying two times the same file.
I going to check, and try to fix it.
I going to check, and try to fix it.