Tuesday, July 30, 2019

Re:

I'm stuck.. If you know anything in the future let me know

On Tue, 30 Jul, 2019, 12:10 PM Aldian Fazrihady, <mobile@aldian.net> wrote:
I see. As Jani has implied, there is currently no idiomatic way to do it. 
Here is one way to do it: https://stackoverflow.com/questions/11529216/django-multiple-file-field

The official way is probably still in progress: https://code.djangoproject.com/ticket/28554

On Tue, Jul 30, 2019 at 12:51 PM Suraj Thapa FC <surajthapafc@gmail.com> wrote:
Actually I'm asking to store multiple files in a single model field and handling each of them

On Mon, 29 Jul, 2019, 9:05 PM Jani Tiainen, <redetin@gmail.com> wrote:
My mistake.

I thuought that OP was asking about uploading and storing multiple files to model.

First part (uploading) is easy since docs do cover that.

Second part is tricky since it requires data structure capable of storing multiple files and there are so many ways to do that.



ma 29. heinäk. 2019 klo 18.22 Aldian Fazrihady <mobile@aldian.net> kirjoitti:
Multiple file uploads already there for many years. The link I shared above show you how to do that the Django way. 

Regards,

Aldian Fazrihady
http://aldianfazrihady.com

On Mon, 29 Jul 2019, 21:52 Jani Tiainen, <redetin@gmail.com> wrote:
Hi.

TL; DR; you can't.

You though can upload multiple files just fine you just need to handle them manually.

Also if you plan to keep files around your models must enable that.


ma 29. heinäk. 2019 klo 15.48 Suraj Thapa FC <surajthapafc@gmail.com> kirjoitti:
How can I create a file field which one can upload Multiple files in it... 

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPjsHcE%2BMSVGHiQ0bx4z_2pxMMiE57FD44kFn4hE%3DsSLaj66kw%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHn91of_AD_METU8A3J4qhHo_E93Qd4hJyS73uRQh43GpRsAgg%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN7EoAYAh%2Bou8fyzcBhyHn25SDx7%3D3Vw%2BY7OGY2%2B%3D3fjk-C0kg%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHn91odErG3F4HGUCBFFh6oQdmg3CEDC2N3gCLNUUeUPrm1bbw%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPjsHcHmsSHpz5CQ2%3DiUaBBEu7YBu-x2yQq6DFkD5jN2ZRM2rg%40mail.gmail.com.


--
Regards,

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN7EoAbZaPq2fs9YLN40OiY_9aWPPw%3D9JwL%3D1Etr3ugO_tVEXw%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPjsHcFsLm4kqcSJvMNzooeAAyu4z1%2BUX%2BpTLU7ZgOrt%2BnYwnQ%40mail.gmail.com.

No comments:

Post a Comment