How to allow downloading images along with other user data (csv) from activity section?

We (few volunteers from the Krita community) have setup a discourse server for the Krita artist community. The setup is very much similar to Blenderartists.org.

Being a forum related to art software the discussions will have a lot of images. From the GDPR perspective discourse provides a way to download the user data from the activities section in profile. However I noticed that the download doesn’t include the images that user has posted to the forum. I would like to ask if there is any way to include the images posted by the users in the downloaded zip files. Is there any plugin to provide such feature?

Thank you.

8 个赞

It’s not currently available in core nor in any plugins I know of unfortunately.

3 个赞

We should arguably include any images the user uploaded in the data download.

2 个赞

Technically they still have the URLs so they could just parse and pull them. I worry about image heavy users ending up costing lots and lots of server time when they click the button.

2 个赞

Sorry if this seems a silly idea, will a predetermined time frame given to user to come back for the zip file help. During this period the zip creation can be done when there is less server activity.

I am uneasy allowing a random end user with lots of activity the ability to trigger downloading half a gig of data from s3 for re-packaging.

Much prefer to provide them with a link to a script they can run against the export to download images.

2 个赞

I’m not an expert, but I believe that from a GDPR perspective this is not an acceptable solution. @RGJ do you know?

1 个赞

closing this for 6 days so our lawyer has a chance to read this before this gets derailed into a GDPR drama.

you still have the ability to run the script as an admin for the user and email them images if you want.

3 个赞

This topic was automatically opened after 5 days.

Any update on this? Either a script/tool to use or core fix?

I know how to manually do it, but I’m more sophisticated than others.

Just to expand on that,

![Screenshot_20200422-132435|281x500](upload://dYJTG1LPTCy8fp52SrPh7a1p89j.png)

came out of a user-archive.csv generated today. That’s not a very user-friendly link.

6 个赞

I did a post export for the first time since May yesterday and see that it has been given some love, but a strange (to me) choice:

But no images in there and I still see fragments (tested with meta) with very hard to use URLs like: ![screen-20200627-125657|385x397](upload://nsHMu7zGRvQ1Y9WuIPrrygpWbC6.png) (note that’s an image I uploaded after the May update).

1 个赞

Putting images in the archive would be a PITA. What we could easily include is the cooked post alongside the raw so images and everything else that is transformed is associated in a standard way that can easily be parsed.

3 个赞

How does that work with the pre-signed URLs option recently introduced? I confess I don’t know much about how that’s implemented, but my fear is that the URLs would not be stable.

(By which I mean: Secure Media Uploads )

If we put the cooked post in like @Falco suggests then the URLs will be /secure-media-uploads/blah. The presigned URL is only generated when the upload is requested from the secure media URL, so you should have no problems.

5 个赞

此功能请求(如果这是功能请求的话)的现状如何?

让我们将此分解为几个较小的问题:

  1. 目前是否有任何方法可以让用户获取其帖子中包含的所有图片的副本?
  2. 是否有任何方法可以获取(或重新创建)这些帖子,至少在上传的图片位于应有位置的程度上?

虽然我不确定我是否能写一个完整的脚本,但我确实尝试过根据 user_archive.csv 中目前包含的信息来重建图片的 URL,但我看不到如何做到这一点,因为 CSV 文件中提供的图片链接与该图片在论坛上的公共 URL 之间似乎没有关联。

例如,我的 CSV 文件中有 ![image|499x436](upload://tIh81VxrDGPzUkxhikPmbgFGbO6.png),而该图片在论坛上的 URL 是 https://forum.example.com/uploads/default/original/2X/d/d04053334ed6a40db3cdcf83c1c6eb139079494e.png,所以即使脚本使用 tIh81VxrDGPzUkxhikPmbgFGbO6.png 结合某个基础 URL,它也无法检索到图片,对吗?或者图片是否以某种方式拥有多个身份?

感谢您顶起这个话题!我之前没看到过。:smiley:

浏览了一下,我既认同 @codinghorror 关于图片应该以这种方式可访问的看法,也认同 @sam 对服务器端资源需求的担忧——尤其是在用户本身不关心图片的情况下。

我无法评论可行性,但从纯粹的用户体验角度来看,我觉得最好是在现有的下载选项旁边提供一个单独的“下载图片”按钮,或者在您使用现有下载选项时弹出一个询问是否要包含图片的提示。

1 个赞

目前还没有,您需要前往论坛。我支持 @Falco 的更改,作为当前情况的快速临时改进。

3 个赞

你的意思是,你必须通过浏览实际的帖子来获取图片?但那样的话,你就无法获得已被删除或对你隐藏的帖子的图片了,对吧?

关于

@sam@Falco 同意某事时,这是否意味着它已被加入某个流程?

1 个赞

有时是……有时不是。这还没有被安排。

我将优先把“cooked”添加到导出中,这是一个简单的更改,应该在下个月的某个时候完成。

1 个赞