Can upload a directory structure as file upload using django?

169 views
Skip to first unread message

Ashok Sharma

unread,
Apr 7, 2020, 8:20:51 AM4/7/20
to Django users
Hi All,

I want to upload a directory structure from remote server same as we are uploading any file or image.

Please have a look and share me any reference.

Thanks 

Andréas Kühne

unread,
Apr 8, 2020, 5:43:20 AM4/8/20
to django...@googlegroups.com
Hi,

You can't do that with a django form field - you need to handle that in some other way.

What I would do is zip the directory and upload the zip file. Python can handle zip files without any problem - so it shouldn't be that hard.

Regards,

Andréas


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fb4f630c-099c-4fc7-994b-b6f7dabfd58c%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages