Discussion:
How to implement upload file, do operation on it, and return result file
breadson xue
2018-04-23 18:58:34 UTC
Permalink
I would like to ask if I upload a post file such as a txt file or video
file, how do I save it with django and follow-up on this file (this
processing is done with a python program that I have written) and return it
to the front end. How the specific process should be implemented and where
my own python program should receive data?
any hint would be helpful!

Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Musharaf Baig
2018-04-23 19:32:36 UTC
Permalink
You can use

*upload_to on FileField models.FileFied(upload_to='')*
Post by breadson xue
I would like to ask if I upload a post file such as a txt file or video
file, how do I save it with django and follow-up on this file (this
processing is done with a python program that I have written) and return it
to the front end. How the specific process should be implemented and where
my own python program should receive data?
any hint would be helpful!
Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
breadson xue
2018-04-23 19:55:43 UTC
Permalink
Thanks for the reply! This is just uploading the file, I'd like to know the
whole process. upload and get processing, then return the result. Is there
any resource I could learn?

圚 2018幎4月23日星期䞀 UTC-7䞋午12:32:36Musharaf Baig写道
Post by Musharaf Baig
You can use
*upload_to on FileField models.FileFied(upload_to='')*
Post by breadson xue
I would like to ask if I upload a post file such as a txt file or video
file, how do I save it with django and follow-up on this file (this
processing is done with a python program that I have written) and return it
to the front end. How the specific process should be implemented and where
my own python program should receive data?
any hint would be helpful!
Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
breadson xue
2018-04-25 18:48:30 UTC
Permalink
anybody?

圚 2018幎4月23日星期䞀 UTC-7䞋午12:55:44breadson xue写道
Post by breadson xue
Thanks for the reply! This is just uploading the file, I'd like to know
the whole process. upload and get processing, then return the result. Is
there any resource I could learn?
圚 2018幎4月23日星期䞀 UTC-7䞋午12:32:36Musharaf Baig写道
Post by Musharaf Baig
You can use
*upload_to on FileField models.FileFied(upload_to='')*
Post by breadson xue
I would like to ask if I upload a post file such as a txt file or video
file, how do I save it with django and follow-up on this file (this
processing is done with a python program that I have written) and return it
to the front end. How the specific process should be implemented and where
my own python program should receive data?
any hint would be helpful!
Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...