Hi Bryan,

It sounds like your best bet would be to implement a custom storage backend:
https://docs.djangoproject.com/en/1.11/howto/custom-file-storage/

You are probably looking to override the _save() method.
Examples of how this could work:
https://stackoverflow.com/questions/4894976/django-custom-file-storage-system

https://github.com/globaldigitalheritage/arches-3d/blob/857c891aa8a885efe4cfaeadb6ac3f25a18d594c/arches_3d/arches_3d/storage/arches_3d_custom_storage.py#L63


Hope this helps!
Vincent

On Mon, Apr 8, 2019 at 3:59 PM Bryan Alvey <[email protected]> wrote:

> Hi guys
>
> We have many thousands of files we wish to upload to different folders on
> the server based on their filename.  Has anyone else tried this? Can anyone
> direct me to the code for the file upload so that I can see what's going on?
>
> Best wishes,
>
>
> Bryan
>
> --
> -- To post, send email to [email protected]. To unsubscribe,
> send email to [email protected]. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to