-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Embed public files on a Website #1472
Comments
This imposes a security risk, if not from same origin and is not advised. 😁
|
There's more than iframing this. What about embedding an image on a public website, in a forum somewhere? Say you're on a forum like here: A few more points:
@nextcloud/designers do you think it would make sense to try and simplify these links and make it easier to embed images from a Nextcloud instance in other places? I'd actually love to put a screenshot on my NC and directly paste the image here... |
@jospoortvliet I opened a dedicated issue, because the use case @skerbis mentioned, is a little bit different and I like your idea! @skerbis Why does your "folder" have to be embedded into another site? Would theming and a direct link not be enough? |
See also #2523 (comment) for the security aspects ;) |
@eppfel the best thing would be a PHP-Class which allwos me to show the Folders, Files and Subfolders inside the Website. The Folder is managed inside nextcloud but should be shown on the Website. Perhaps does anyone know a PHP-Script for integrating a webdav-browser? |
or short is there a api for that? |
Well there's webDAV & the OCS API, but you'd have to write your own view. Perhaps CMS Pico can help? |
Any progress on this matter? It would be excellent feature to view Nextcloud public link "folder" straight from Wordpress. |
@Xemanth or any other "real" CMS ;-) |
Thanks, NC team & fans! Direct share link for an Image works great in v13! Kind Regards, |
@mveplus it must be possible, though I don't know how... As I said, you can use cms_pico for some things, at least - https://nextcloud.com/blog/nextcloud-introduces-easy-website-builder-for-education-edition-with-picocms/ |
@mveplus
|
Thanks, @jospoortvliet and @SlavikCA I have now a few more thoughts to chew up and tinker. Thanks for taking the time to replay! I'm sure if there is enough interest NC team will come up with a solution. |
@SlavikCA |
The link is not working. It would be nice with a description on how to do this :) |
@srednax it's documented here at the end: https://docs.nextcloud.com/server/13.0.0/user_manual/files/access_webdav.html#accessing-files-using-curl |
(above link will always point to the latest documentation) |
Here's a PHP-Solution: https://github.com/fercavi/webdav |
I installed an app that provides a link, called shared path. It is immature, but it does provide a functional URL if you share a link to a file. |
Is there a way to embed a public folder by iframe or php into a Website,
so that a user can browse a folder and download the files he or she needs.
Or do you know a nice Webdav browsing class for PHP?
We want to share some public data which will be perhaps managed in a nextcloud.
The text was updated successfully, but these errors were encountered: