We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, there, I set my function to define the subfolder like this:
def subfolder(instance): return os.path.join("files", str(instance.Publisher.id), str(instance.Contract.id))
But when I upload a file I only find one level of subfolder:
contracts1/10/contract.pdf
It should be:
contracts/1/10/contract.pdf
Thanks, Gregorio
The text was updated successfully, but these errors were encountered:
@gregoriopellegrino
in source code i found this: if upload_subfolder: # Should return a list, so joining can be done in a storage-specific manner.
if upload_subfolder: # Should return a list, so joining can be done in a storage-specific manner.
try this: def subfolder(instance): return ['files', str(instance.Publisher.id), str(instance.Contract.id)]
def subfolder(instance): return ['files', str(instance.Publisher.id), str(instance.Contract.id)]
Sorry, something went wrong.
No branches or pull requests
Hi, there,
I set my function to define the subfolder like this:
But when I upload a file I only find one level of subfolder:
contracts1/10/contract.pdf
It should be:
contracts/1/10/contract.pdf
Thanks,
Gregorio
The text was updated successfully, but these errors were encountered: