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 Mi Piace

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

3 Mi Piace

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

2 Mi Piace

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 Mi Piace

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 Mi Piace

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

1 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

Qual è lo stato di questa richiesta di funzionalità (se di questo si tratta)?

Suddividiamo questo in diverse domande più piccole:

  1. Esiste attualmente un modo per un utente di ottenere una copia di tutte le immagini incluse nei propri post?
  2. Esiste un modo per ottenere (o ricreare) questi post nel loro formato “cotto”, almeno nella misura in cui le immagini caricate si trovino nel posto in cui dovrebbero essere?

Sebbene non sia sicuro di poter scrivere uno script completo, ho provato a capire come ricostruire l’URL delle immagini in base alle informazioni attualmente incluse nel file user_archive.csv, ma non vedo come sarebbe possibile, dato che sembra non esserci alcuna correlazione tra il link dell’immagine fornito nel file csv e l’URL pubblico di quell’immagine sul forum.

Ad esempio, ho ![image|499x436](upload://tIh81VxrDGPzUkxhikPmbgFGbO6.png) nel mio file csv e l’URL di quell’immagine sul forum è https://forum.example.com/uploads/default/original/2X/d/d04053334ed6a40db3cdcf83c1c6eb139079494e.png, quindi anche se lo script utilizzasse tIh81VxrDGPzUkxhikPmbgFGbO6.png in combinazione con un URL di base, non sarebbe in grado di recuperare l’immagine, giusto? O un’immagine ha in qualche modo più identità?

Grazie per aver riaperto questo argomento! Non l’avevo visto in precedenza. :smiley:

Esaminandolo, condivido sia la presunta convinzione di @codinghorror che le immagini dovrebbero essere accessibili in questo modo, sia la preoccupazione di @sam riguardo alle richieste che ciò comporterebbe per le risorse lato server, in particolare nei casi in cui l’utente non è interessato alle immagini di per sé.

Non posso esprimermi sulla fattibilità, ma da un punto di vista strettamente UX, ritengo che sarebbe meglio avere un pulsante separato scarica immagini presentato accanto all’opzione di download esistente, oppure un popup che chieda se si desidera includere le immagini quando si utilizza l’opzione di download esistente.

1 Mi Piace

Al momento no, dovresti recarti sul forum. Supporto la modifica di @Falco come un rapido miglioramento intermedio della situazione.

3 Mi Piace

Intendi dire che dovresti ottenere le immagini navigando nei post effettivi? Ma ciò non ti darebbe le immagini dai post che sono stati eliminati o nascosti da te, giusto?

Per quanto riguarda il

Quando @sam e @Falco sono d’accordo su qualcosa, significa che è stato aggiunto a qualche pipeline?

1 Mi Piace

a volte sì… a volte no. Questo non è ancora stato inserito.

Darò priorità all’aggiunta di “cooked” all’esportazione, è una modifica facile, dovrebbe avvenire entro il prossimo mese.

1 Mi Piace