Skip to content

Conversation

AyakorK
Copy link
Contributor

@AyakorK AyakorK commented Jul 28, 2025

🎩 Description

Had multiple issues regarding survey's attachments related to user's answers

  • Due to Sprockets issues we couldn't upload an attachment
  • Retrieval of the attachments in the back-office was impossible due to the "absolute" link of the s3 bucket and not the relative link

Testing

  • Log in as admin
  • Access Backoffice
  • Go to participatory processes
  • Access a survey component
  • Configure an "attachment answer"
  • Answer the survey as a user
  • Make sure you can upload correctly the attachment
  • Access your survey component on the back office with admin
  • Try to open the link of the answer's attachment
  • Make sure the link matches /rails/active_storage/blobs/redirect/

📌 Related Issues

@luciegrau luciegrau marked this pull request as ready for review August 5, 2025 10:25
Copy link
Contributor

@Stef-Rousset Stef-Rousset left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if it is my config but I had a pb with the wicked_pdf_stylesheet_pack_tag:

  • without running shakapacker-dev-server and submitting the survey with a file, I had this error =>
Capture d’écran 2025-09-02 à 15 08 43 - when running shakapacker-dev-server and submitting the survey with a file, I had this error => Capture d’écran 2025-09-02 à 15 33 01

@luciegrau
Copy link
Collaborator

Hi @AyakorK could you take a look at Stephanie's comment above please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Cannot download the attached files from the survey responses
3 participants