A
A
Alexander2019-08-06 09:48:50
phpBB
Alexander, 2019-08-06 09:48:50

Nextcloud - forum image?

Why isn't the public image link on the PHPBB forum working? How to make a preview correctly, tell me?
If you open the link in a browser, then everything works fine... Here is the link
https://cloud.ustim.ru/s/gdMBq4mEx63qpSz

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SlavikF, 2019-08-06
@alterak

This is all because the developers in Nextcloud are "driven" about security. Maybe it's right.
In general, the problem is that if you give the user the opportunity to upload a photo, and then use a DIRECT link to this file, then this user can somehow hack something in this way. Therefore - for no reason
BUT. If you GENERATE another preview image from the original picture, then you can.
To do this, add /preview at the end of the URL. Like this:
https://cloud.ustim.ru/s/gdMBq4mEx63qpSz/preview
And such a link seems to work on forums and external sites.
Another option is to make another Apache (or Nginx) vhost with Directory Root pointing to your nextcloud/data. BUT here you need to understand what you are doing, because in this scenario, files that you might not want to make public will become public ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question