publish .pdf of .doc files

User avatar
jmonroe
Sr. Bludit
Posts: 38
Joined: Mon Feb 22, 2016 8:06 am
Location: USA
Contact:

This is good information to know. Thanks
Jeremy Monroe
I Support Bludit via Patreon
koljaxyz
Ssr. Bludit
Posts: 12
Joined: Thu Apr 30, 2020 10:24 am

Edi wrote: Thu Jan 02, 2020 12:22 am As HTML link (with the absolute path to the file).
And how do I get the absolute path in the backend?
lightmat
Sr. Bludit
Posts: 46
Joined: Fri Feb 21, 2020 10:53 pm

koljaxyz wrote: Sat May 23, 2020 12:34 pm
Edi wrote: Thu Jan 02, 2020 12:22 am As HTML link (with the absolute path to the file).
And how do I get the absolute path in the backend?
When you upload, select Insert.
Then click the square of the inserted, and click om the image on the toolbar, so it will show the absolute path to the file.
Looks some lige this:
http://root-path/bl-content/uploads/pag ... /guide.pdf
schmocken
Jr. Bludit
Posts: 2
Joined: Tue Dec 15, 2020 12:37 am

Jay wrote: Tue Aug 06, 2019 8:19 pm
Kao wrote: Tue Aug 06, 2019 2:32 pm Any ideas what is going wrong and how to fix it?
You were heading in the right direction as things changed in B 3.9.X
Basically you need to
1. add a valid mime type of the files you want to upload in validImageTypes array
For pdf files add:

Code: Select all

application/pdf


2. add allowed file extension in ALLOWED_IMG_EXTENSION variable, which you have already done judging by the error message

edit, save, upload changes, and let us know if everything works as supposed ;)
Hi Jay
I tried the same thing for uploading .gpx-files, but it didn't work.

I added to validImageTypes:

Code: Select all

'application/gpx', 'application/gpx+xml'
to ALLOWED_IMG_EXTENSION

Code: Select all

'gpx'
and to ALLOWED_IMG_MIMETYPES

Code: Select all

'application/gpx', 'application/gpx+xml'
Any idea why this wouldn't work? Is .gpx just not possible to support?
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

schmocken wrote: Wed Dec 30, 2020 4:41 pm I tried the same thing for uploading .gpx-files, but it didn't work.
Could be, also MIME type image/avif does not work:

https://github.com/bludit/bludit/issues/1264
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Jay
Master Bludit
Posts: 133
Joined: Mon Feb 11, 2019 8:41 pm

schmocken wrote: Wed Dec 30, 2020 4:41 pm Any idea why this wouldn't work? Is .gpx just not possible to support?
gpx is a xml based format so try adding also mimetypes for xml files
text/xml
application/xml
not sure if application/octet-stream would also come in handy

This is only an idea, I don't have currently possibilities to test it.

Edi wrote: Wed Dec 30, 2020 10:28 pm Could be, also MIME type image/avif does not work:
Have you also added image/avif-sequence mime type along with .avifs extension?
schmocken
Jr. Bludit
Posts: 2
Joined: Tue Dec 15, 2020 12:37 am

Jay wrote: Sat Jan 02, 2021 3:55 pm gpx is a xml based format so try adding also mimetypes for xml files
text/xml
application/xml
not sure if application/octet-stream would also come in handy
Thanks for the hints. I tried these but wasn’t successful.
quicklyweb
Jr. Bludit
Posts: 8
Joined: Wed Dec 16, 2020 12:32 pm

try adding all below

'application/gpx+xml';
'application/xml';
'text/xml';
'text/gpx';
'text/gpsxml';
'application/gpsxml';
BLUDIT HOSTING QUICKLYWEBImage

SEE BLUDIT IN ACTION @ QUICKLYWEB
http://www.quicklyweb.com
Post Reply