Skip to content

Added #17197: Ability to download uploaded import CSVs#18328

Merged
snipe merged 9 commits intodevelopfrom
#17197-download-importer-files
Dec 10, 2025
Merged

Added #17197: Ability to download uploaded import CSVs#18328
snipe merged 9 commits intodevelopfrom
#17197-download-importer-files

Conversation

@snipe
Copy link
Copy Markdown
Member

@snipe snipe commented Dec 10, 2025

This adds the ability for users to download previously uploaded import files. Superusers can download any of the uploaded imports, and non-superusers can only download imports they themselves have uploaded.

This also checks to see whether or not the user actually has permission to go to the FCO they are importing. Why wouldn't they be able to, you might ask? Beat me, but I've seen it happen. Previously, this would sad panda you, if for example you were importing categories (because you needed them for asset models, which you do have access to see), after you imported the categories, you'd end up at a sad panda, since you can't actually see categories. Now it will redirect you back to the import index if you don't have permission to see whatever it is you're importing.

This also disallows users who are not superusers from deleting files they don't own.

It also normalizes the .csv extension on download.

Screenshot 2025-12-09 at 11 54 58 PM Screenshot 2025-12-09 at 11 56 19 PM

@snipe snipe merged commit 6c5d2c6 into develop Dec 10, 2025
7 of 8 checks passed
@snipe snipe deleted the #17197-download-importer-files branch December 10, 2025 00:07
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.

Feature Request: The ability to download the CSV file from a previous import

1 participant