Comments (7)
Part of this has been implemented through the mapping+cleanup process.
See https://github.com/FriendsOfFlarum/upload#mapfilescommand to implement.
If there's any infringing material, use the post edit feature to remove the image/file from the post, then the command will automatically delete the file. Same if a file is never successfully posted, it will end up deleted.
If you are worried about users using Flarum as a CDN until the cleanup process runs, you can also configure your webserver in a way where hotlinking is prevented. This way it will be very unpractical for anyone to use your forum as a file hosting service.
from upload.
The feature request has been completed in the latest release (as Clark points out). Closing.
@therealmaxmoon if you need a new feature, eg remove files on this post, without deleting the post (as Clark mentions), then do create a new feature request as a new issue.
from upload.
In a system that we've built/are building we save all uploaded images which are also viewable in an image gallery by the user. Optionally the user can move images to public gallery folders which can be accessed from their user profile.
If an image is used in a user profile or post this is recorded in the database. This makes it easy for users to clean up orphaned images and you can properly deal with deleted images in topics.
from upload.
+1 ❤ Imgur image Deletion https://api.imgur.com/endpoints/image/#image-delete
from upload.
This issue is open for 7 years and there is still no possibility to delete uploaded data?
I find it fatal, that users can upload stuff and then hide it with the trash icon (why is that even a thing?). It can be even hidden from the admin, because admins do not see hidden media in the user profile, even if they have the permission (View user uploads).
Imagine someone uploads pedophile material on your server, hides it, shares the links to other pedophiles and no admin/mod will ever notice it.
Is there currently a way to completely delete a file in an emergency right now? For example, if an admin sees illegal material and MUST delete it instantly.
from upload.
Part of this has been implemented through the mapping+cleanup process.
I had some issues to execute those commands, but I've created a new issue for this.
you can also configure your webserver in a way where hotlinking is prevented.
hmmm... I thought hotlink prevention is activated as a default or what exactly does this option do if it's not activated?:
But after embedding pictures on another website from my forum the images showed up and hotlinking was possible.
After a while I figured out I have to add the hotlink prevention before including the .nginx.conf, which was provided by flarum.
I added search engines to the white list, but still don't know if it's a good or bad idea?
server {
location ~* \.(?:jp?g|gif|png|webp)$ {
valid_referers none blocked ~.google. ~.bing. ~.yahoo. ~.duckduckgo. ~.ecosia. ~.qwant. ~.startpage. ~.metager. utopify.org *.utopify.org;
if ($invalid_referer) {
return 403;
}
}
include /var/www/flarum/.nginx.conf;
[...]
from upload.
I can't delete the photos I uploaded on the Shared uploads on my flarum forum. Every time I try deleting it, I get an error saying "Could not delete file"
Help please. Also when I try deleting it using the Imgur API using my client-ID, I get a 403 Error, says Unauthorized.
from upload.
Related Issues (20)
- AWS S3 Error: Undefined constant GuzzleHttp\ClientInterface::VERSION in /flarum/app/vendor/aws/aws-sdk-php/src/functions.php:265 HOT 1
- 500 错误 HOT 7
- Cleanup for imgur uploads does not work
- Check MIME type & file size before upload
- PDF files are not displayed HOT 1
- `--cleanup` can not cleanup the file correctly
- Show 500 error when user uploads a file size larger than limited file size in backend HOT 3
- Request: ENV variables
- Remove file on 3s storage when deleting a file in manage uploaded files HOT 2
- Request: test s3 upload in admin
- Copy paste images HOT 1
- Cleanup CLI command logic deletes all files using "Default File Download Template" HOT 2
- Upload your watermark image is not work HOT 3
- Enable watermark images, uploader is not placed the processed image to the editor's content HOT 4
- Members cannot delete their own files HOT 2
- No hint path defined for [another-extension-i-added] HOT 4
- Load More Files does not work as expected
- Can't install on PHP 8.2 HOT 2
- Feature Request: File Download Template without proxy download and instead using CDN URL
- Installation error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from upload.