Uploading file to Directus fails with 502 error

I can upload smaller (kilobytes) files like small images, etc. However trying to upload an mp3 that's around 5.2mb keeps failing with this error and these are my logs so far. I have added MAX_PAYLOAD_SIZE=50mb to my environment and deployed again to no avail. What am i missing? Thanks for the help in advance. PS: The errors in the log are from my attempts to delete partial uploads so any help with that will also be greatly appreciated
No description
No description
2 Replies
pranjalpruthi
pranjalpruthi6mo ago
were u able to fix this Create tiny dummy files echo "test" > 1.fa echo "test" > 2.bed echo "test" > 3.tsv curl -X POST https://cr.pranjal.work/analyze_ssr/ \   -F "fasta_file=@1.fa" \   -F "categories_file=@3.tsv" \   -F "gene_bed=@2.bed" \   -F 'perf_params={"mono":1,"di":1,"tri":1,"tetra":1,"penta":1,"hexa":1,"minLen":10,"maxLen":100,"unfair":1,"thread":1,"min_repeat_count":1,"min_genome_count":1}' curl -X POST  https://cr.pranjal.work/analyze_ssr/   -F "fasta_file=@1.fa"   -F "categories_file=@3.tsv"   -F "gene_bed=@2.bed"   -F 'perf_params={"mono":12,"di":4,"tri":3,"tetra":3,"penta":3,"hexa":2,"minLen":156000,"maxLen":10000000,"unfair":50,"thread":50,"min_repeat_count":1,"min_genome_count":5}' gives bad gateway 502 job not reach the container dokploy uses treafik as reverse proxy api is working its take small file but mine is like 80mb still not siubmitting so how to fix this im having same bug large file gives 502 i dont know where to increase the limit
bytes032
bytes0326mo ago
just use s3 bucket

Did you find this page helpful?