Answer the question
In order to leave comments, you need to log in
How to form a file structure for uploaded files through nginx_module_upload?
I use the nginx_module_upload
module to upload and store images. After that they are given to nginx through image_filter according to this example Fast resize and caching of images The
question is that I don't understand how to correctly form the file structure for uploaded images?
In the nginx_module_upload module, if the directive that allows you to create hashed directories of any level:
upload_store <directory> [<level 1> [<level 2> ] ... ]
location ~* ^/resize/([\d\-]+)/([\d\-]+)/(.+)$ {
alias <STORAGE_ROOT>/$3;
image_filter resize $1 $2;
image_filter_buffer 2M;
error_page 415 = /empty;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question