![]()
My site canot know who downloaded attachments.
The discussion revolves around the need to log which users download attachments on a Discourse site. appcomq initially notes the lack of such tracking and expresses concern over large nginx logs with 40,000 users. codinghorror suggests checking nginx logs, but appcomq finds them unwieldy. appcomq shares a screenshot showing only download counters exist, and asks if logging user downloads is technically feasible. They later reference the outdated df-restricted-files plugin, incompatible with Discourse 1.8. dax recommends the Data Explorer plugin to query download data, while tophee cautions that attachments are publicly accessible via direct links. appcomq proposes modifying a script to log user access to .zip/.rar files with usernames. AndyBr questions if a newer restricted files plugin exists. pfaffman points to a secure media uploads topic, which AndyBr finds intimidating and notes they don’t use S3. pfaffman clarifies Data Explorer can track post views but not downloads, and offers paid help to restrict uploads to logged-in users. AndyBr declines due to budget constraints. The core need remains: tracking downloaders and optionally restricting access — both currently unsupported out-of-the-box.
![]()
My site canot know who downloaded attachments.
Check your nginx logs for that information.
nginx logs too big data.
now have 40,000 users. ![]()
![]()
Now only have counter, I wanto logs who user download. can it be technically possible?
I find this GitHub - discourse-pro/df-restricted-files: The «Restricted Files» plugin for Discourse · GitHub
but canot use 1.8
You can install Data explorer plugin and write an SQL query for that (or ask here if someone can write a query for you (Superseded) What cool data explorer queries have you come up with?)
Note that attachments can be downloaded by anyone who has the link.
I have a idea, use
can help me add the code ? Output all zip and rar url User access Filename + username.
So I know who downloaded it.
هل توجد إضافة جديدة للملفات المقيدة؟ يبدو أن الإضافة التي ربطت بها قديمة جدًا وقد لا تكون متوافقة مع أحدث إصدار من Discourse؟
واو! يبدو مخيفًا.
أيضًا، هل لا تستخدم S3 (الذي أفترض أنه يعني أمازون)؟
شكرًا لك.
أريد فقط الحصول على قائمة بالأشخاص الذين قاموا بتنزيل الملفات، وإذا أمكن حماية تلك الملفات بحيث تكون متاحة فقط للمستخدمين المصرح لهم، فسيكون ذلك ميزة إضافية!
أعتقد أنه يمكنك الحصول على قائمة بأولئك الذين شاهدوا هذه المنشورات باستخدام مستكشف البيانات. لا أعتقد أنه يمكنك معرفة من قام بتحميلها.
إذا كان لديك ميزانية، قد أساعدك في تقييد الوصول إلى التحميلات للمستخدمين المسجلين في الدخول.
شكرًا لك.
للأسف، لا أملك ميزانية مخصصة للتخصيص في الوقت الحالي.