Skip to content

private_download returns filepath list instead of file content #3407

Closed
@sjanssen2

Description

@sjanssen2

Hi @antgonza,
when I generate a public link of an artifact in my Qiita instance:
image
I do get a link, but using this link does not return a zip archive with the files as content, but is a plain textfile that lists the filepaths from the filesystem, like:

- 346916 /protected/Demultiplexed/41/seqs.fastq.gz Demultiplexed/41/seqs.fastq.gz
- 69187 /protected/Demultiplexed/41/seqs.fasta.gz Demultiplexed/41/seqs.fasta.gz
- 425721 /protected/Demultiplexed/41/seqs.demux Demultiplexed/41/seqs.demux
- 22029 /protected/Demultiplexed/41/index.html Demultiplexed/41/index.html
- 6247 /protected/templates/6_prep_9_20240507-134645.txt mapping_files/41_mapping_file.txt

Since I read function names like _write_nginx_file_list in

def _write_nginx_file_list(self, to_download):
I figure this is probably due to a misconfiguration of my NGINX. Could you provide an example nginx config section?
Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions