Re: 0 i am trying to upload a file to django server backend.i added a progress bar by using javascript,xhr and ajax method also i added a cancel button to cancel the upload the progress bar is working

2023-11-08 Thread 2JR19CS041_Danish
cancel.addEventListener('click',(xhr.abort)); it should be callback function try this: cancel.addEventListener('click', function(e){ xhr.abort() }) On Monday, 30 October 2023 at 21:10:03 UTC+5:30 Gokul G.M wrote: > > > > > > Document >

0 i am trying to upload a file to django server backend.i added a progress bar by using javascript,xhr and ajax method also i added a cancel button to cancel the upload the progress bar is working pr

2023-10-30 Thread Gokul G.M
Document https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css; integrity= "sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">

Re: how to upload large file in django

2022-12-16 Thread 'Kasper Laudrup' via Django users
On 16/12/2022 09.52, MD SHARIF FOYSAL SHORON wrote: can anyone help me that how to upload a 5gb video by django model form? Uploading a large file is not different from upload a small file so hard to know what kind of help you need. Maybe try to be a bit more specific. Are you facing any

how to upload large file in django

2022-12-16 Thread MD SHARIF FOYSAL SHORON
can anyone help me that how to upload a 5gb video by django model form? -- 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

Re: progress bar and upload big file and protect files

2020-03-06 Thread Alaydyn Gholechragh
tqdm not work for web it is for consol or windwos or mac ... On Wednesday, March 4, 2020 at 8:31:24 PM UTC+3:30, jlgimeno71 wrote: > > > > On Wed, Mar 4, 2020 at 8:40 AM Alaydyn Gholechragh > wrote: > >> Hi >> I search a lot in Google to find best methods for uploads big file with >>

Re: progress bar and upload big file and protect files

2020-03-04 Thread Jorge Gimeno
On Wed, Mar 4, 2020 at 8:40 AM Alaydyn Gholechragh wrote: > Hi > I search a lot in Google to find best methods for uploads big file with > progressbar to my site and i can't find any solution > And other things for protecting my file (zip or rar) from Anonymous user.. > Because I want to create

progress bar and upload big file and protect files

2020-03-04 Thread Alaydyn Gholechragh
Hi I search a lot in Google to find best methods for uploads big file with progressbar to my site and i can't find any solution And other things for protecting my file (zip or rar) from Anonymous user.. Because I want to create a web site for selling some files Please help me and give me best

Re: Upload of file with FileField working in admin but not in template

2018-05-03 Thread Alexander Joseph
er doesn't know how to encode the files > > Regards, > > Andréas > > 2018-05-03 18:44 GMT+02:00 Alexander Joseph <alexander.v.jos...@gmail.com> > : > >> I'm using CBVs and trying to upload a file with a FileField. It seems to >> work in admin but not i

Re: Upload of file with FileField working in admin but not in template

2018-05-03 Thread Andréas Kühne
nd trying to upload a file with a FileField. It seems to > work in admin but not in my template. It doesnt give any errors when > creating the record and it saves the rest of the data in the form, but it > doesnt save the attachment > > Heres my model > > clas

Upload of file with FileField working in admin but not in template

2018-05-03 Thread Alexander Joseph
I'm using CBVs and trying to upload a file with a FileField. It seems to work in admin but not in my template. It doesnt give any errors when creating the record and it saves the rest of the data in the form, but it doesnt save the attachment Heres my model class LaserMaskDesign(models.Model

Re: Let users either upload a file or provide an URL to a file

2018-01-17 Thread Tony
Thank you so much. I will give it a go. On Wednesday, January 17, 2018 at 4:48:24 PM UTC+1, Matemática A3K wrote: > > > > On Wed, Jan 17, 2018 at 11:53 AM, Tony <bitbith...@gmail.com > > wrote: > >> I would like to let users either upload a video file(to AWS S3) or

Re: Let users either upload a file or provide an URL to a file

2018-01-17 Thread Tony
Thank you so much. I will give that go. On Wednesday, January 17, 2018 at 4:48:24 PM UTC+1, Matemática A3K wrote: > > > > On Wed, Jan 17, 2018 at 11:53 AM, Tony <bitbith...@gmail.com > > wrote: > >> I would like to let users either upload a video file(to AWS S3) or

Re: Let users either upload a file or provide an URL to a file

2018-01-17 Thread Matemática A3K
On Wed, Jan 17, 2018 at 11:53 AM, Tony <bitbithksand...@gmail.com> wrote: > I would like to let users either upload a video file(to AWS S3) or provide > an URL to a video, e.g. Youtube/Vimeo. > > > I found a similar question for Rails: Rails: upload a file OR

Let users either upload a file or provide an URL to a file

2018-01-17 Thread Tony
I would like to let users either upload a video file(to AWS S3) or provide an URL to a video, e.g. Youtube/Vimeo. I found a similar question for Rails: Rails: upload a file OR store a url <https://stackoverflow.com/questions/13547724/rails-upload-a-file-or-store-a-url>

file upload encryption file name changing

2016-04-02 Thread Harold Gomez
please help me I have a file upload app also a file encryption method in that file encryption method a file is encrypted from a path/file.extenssion to a path/filename.enc --->(1) I gave the file name using MEDIA_FILE How can I give a filename.

Re: Upload new file to the uploaded file path

2015-08-08 Thread Robin Lery
It works perfectly! I am using it to upload in s3, and even for s3 it works as it is supposed to. I am really grateful to you. Thank you. On Wed, Aug 5, 2015 at 4:37 PM, 'Tom Evans' via Django users < django-users@googlegroups.com> wrote: > On Tue, Aug 4, 2015 at 9:45 PM, Robin Lery

Re: Upload new file to the uploaded file path

2015-08-05 Thread 'Tom Evans' via Django users
On Tue, Aug 4, 2015 at 9:45 PM, Robin Lery wrote: > I have a model for Video: > > class Video(models.Model): > title = models.CharField(max_length=75) > pubdate = models.DateTimeField(default=timezone.now) > original_video =

Upload new file to the uploaded file path

2015-08-04 Thread Robin Lery
I have a model for Video: class Video(models.Model): title = models.CharField(max_length=75) pubdate = models.DateTimeField(default=timezone.now) original_video = models.FileField(upload_to=get_upload_file_name) mp4_720 = models.FileField(upload_to=get_upload_file_name,blank=True,

Fwd: upload csv file from different directories

2015-05-02 Thread sum abiut
-- Forwarded message -- From: sum abiut <suab...@gmail.com> Date: Thu, Apr 30, 2015 at 2:18 PM Subject: upload csv file from different directories To: django-users@googlegroups.com Hi I am writing an app that upload csv file and write csv data to models. So far ever

upload csv file from different directories

2015-04-29 Thread sum abiut
Hi I am writing an app that upload csv file and write csv data to models. So far everything is working fine. What i want to do now is to be able get the users to be able to upload csv files from different directories. I cannot seem to figure this out, i need directions. form the function

Re: Upload csv file

2013-04-24 Thread Hélio Miranda
That was it, I managed Thank you -- 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+unsubscr...@googlegroups.com. To post to this group, send email

Re: Upload csv file

2013-04-24 Thread Shawn Milochik
http://docs.python.org/2/library/csv.html#csv.DictReader -- 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+unsubscr...@googlegroups.com. To post to

Re: Upload csv file

2013-04-24 Thread Hélio Miranda
I have a problem that I am not able to resolve. With the code I left in the previous post, you are entering data in csv db without problems, but for example the csv file looks like this: Namo,Sobrenome Rui,Gomes Renato,Aimar And I just want it to be inserted into the db (Renato Aimar and Rui

Re: Upload csv file

2013-04-24 Thread Hélio Miranda
I have a problem that I am not able to resolve. With the code I left in the previous post, you are entering data in csv db without problems, but for example the csv file looks like this: Name, Surname Rui Gomes Renato, Aimar And I just want it to be inserted into the db (Renato Gomes and Rui,

Re: Upload csv file

2013-04-24 Thread Hélio Miranda
It was because I first had to enter the fields and now wanted by csv. So now I removed the fields, and only got the upload. How are here: http://plnkr.co/edit/hoaPt2ljRDZbw7XdW80Q And it's ok. Already inserting data from csv. Thank you for your help -- You received this message because you

Re: Upload csv file

2013-04-24 Thread abhijeet shete
According to form you used in your template it will send only csv file after clicking on submit button. {% csrf_token %} Submit If you want to access Nome and Sobrenome in views on submit button, then you need to pass these inputs in the same form you used for submit as {%

Re: Upload csv file

2013-04-24 Thread abhijeet shete
According to form you used in your template it will send only file {% csrf_token %} Submit -- 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

Re: Upload csv file

2013-04-24 Thread Hélio Miranda
Ok, I made the changes as you said. But when I choose the csv file and then I click the submit button, it gives me the following error has: *"Key 'Nome' not found in "* * * I do not know why* * -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Upload csv file

2013-04-24 Thread abhijeet shete
1. In your views.index function you have written something like this file = request.FILES for line in file: You cant use file object directly instead try some thing like this file = request.FILES['file'] for line in file.readlines(): line = line.split(';') 2.

Re: Upload csv file

2013-04-24 Thread Hélio Miranda
What I'm doing is the following link: http://plnkr.co/edit/hoaPt2ljRDZbw7XdW80Q I can input the registration, filling and pressing the add. But now, I wanted to select a csv file and insert the data. I'm trying the way the link is there, but do not know if it's correct, because I'm starting in

Re: Upload csv file

2013-04-24 Thread abhijeet shete
Can you please briefly explain your model structure and how you are trying to save csv in MongoDB so that we can check whats going wrong. > Cheers. Abhijeet Shete -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Upload csv file

2013-04-24 Thread Hélio Miranda
I mogodb to enter data in, can not pass data from csv into a model, you must be a Document -- 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

Re: Upload csv file

2013-04-23 Thread Mario Gudelj
Have you looked at http://django-csv-importer.readthedocs.org/en/latest/? On 24 April 2013 05:38, Hélio Miranda <helio...@gmail.com> wrote: > I have a Django application that interacts with the mongodb data entry. > But now he wanted to be able to insert data from a csv

Re: Upload csv file

2013-04-23 Thread Hélio Miranda
I have a Django application that interacts with the mongodb data entry. But now he wanted to be able to insert data from a csv file upload. Someone can help me? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Upload csv file

2013-04-23 Thread Shawn Milochik
MongoDB documents are practically indistinguishable from Python dictionaries. You can use the csv module (csv.DictReader) to read in the CSV file and the pymongo library to write those dicts to Mongo. This really has nothing at all to do with Django. -- You received this message because you

Upload csv file

2013-04-23 Thread Hélio Miranda
Hi I am having a problem which is as follows: In django want to upload a csv file, read that file and enter the data in DB MongoDB. Can anyone help me do this? I am new to django and I'm not quite see how I can do this ... thank you -- You received this message because you are subscribed

Re: Upload a file

2011-11-24 Thread Antoni Aloy
2011/11/24 jose osuna perez : > My last question is whether anyone can tell me how to upload files > of any kind, not just image. > I've got the image, changing the picture of a user (in > my program) > but do not know how to upload files ... > Thanks in advance.

Upload a file

2011-11-24 Thread jose osuna perez
My last question is whether anyone can tell me how to upload files of any kind, not just image. I've got the image, changing the picture of a user (in my program) but do not know how to upload files ... Thanks in advance. -- You received this message because you are subscribed to the Google

Re: Upload a File using the request.POST data

2010-09-27 Thread Sam Lai
On 27 September 2010 14:31, Danny Bos wrote: > There is no form, it's entirely Javascript. > Spoke to the creator of the script, who has popped up script examples > for PHP and ColdFusion he reckons: > > "You basically have to put the whole post contents into a file."

Re: Upload a File using the request.POST data

2010-09-26 Thread Danny Bos
There is no form, it's entirely Javascript. Spoke to the creator of the script, who has popped up script examples for PHP and ColdFusion he reckons: "You basically have to put the whole post contents into a file." Not altogether helpful, eh? d On Sep 27, 1:52 pm, Sam Lai

Re: Upload a File using the request.POST data

2010-09-26 Thread Sam Lai
Have you got the right attribute in the form? >From http://docs.djangoproject.com/en/dev/topics/http/file-uploads/ "Note that request.FILES will only contain data if the request method was POST and the that posted the request has the attribute enctype="multipart/form-data". Otherwise,

Re: Upload a File using the request.POST data

2010-09-26 Thread Danny Bos
Can it even be done? It seems pretty ordinary but everything I'm trying expects it to be a request.FILE. Frustrating stuff. d On Sep 27, 11:24 am, Danny Bos wrote: > Heya, > > I'm using the 'Valums File Uploader' which passes the file in the > request.POST as you can

Upload a File using the request.POST data

2010-09-26 Thread Danny Bos
Heya, I'm using the 'Valums File Uploader' which passes the file in the request.POST as you can see below. I'm wondering how to get that data into an actual file. Any ideas would be great as things like "for chunk in f.chunks()" only works on request.FILES which in this case is empty. Thanks,

Re: Upload image file, resize using PIL, then save into ImageField - what to save to ImageField?

2010-03-19 Thread robinne
, I am able to upload a file and save it to a ThumbnailField as smaller version, which is all I needed. Thanks! On Mar 18, 7:03 am, Alex Robbins <alexander.j.robb...@gmail.com> wrote: > I think Satchmo useshttp://code.google.com/p/sorl-thumbnail/ > I think it uses PIL undern

Re: Upload image file, resize using PIL, then save into ImageField - what to save to ImageField?

2010-03-19 Thread CrabbyPete
The Imagefile is just a pointer to file. Here is what I do to upload and resize an image. I hope it helps. file_to_open = settings.MEDIA_ROOT+'//profiles//'+ user.username+'-'+file.name fd = open(file_to_open, 'wb+') if file.multiple_chunks(): for chunk in

Re: Upload image file, resize using PIL, then save into ImageField - what to save to ImageField?

2010-03-18 Thread Alex Robbins
I think Satchmo uses http://code.google.com/p/sorl-thumbnail/ I think it uses PIL underneath a layer of abstraction. That might work for you if you are just wanting to generate alternate versions of uploaded images. Alex On Mar 18, 12:10 am, robinne wrote: > I can

Re: Upload image file, resize using PIL, then save into ImageField - what to save to ImageField?

2010-03-18 Thread bruno desthuilliers
On Mar 18, 6:10 am, robinne wrote: > I can save an uploaded image to a FileField like this (where > "ProductFile" is a model) and "TempFile" is an ImageField: > > uploadedfile = request.FILES['uploadfile'] >

Upload image file, resize using PIL, then save into ImageField - what to save to ImageField?

2010-03-17 Thread robinne
I can save an uploaded image to a FileField like this (where "ProductFile" is a model) and "TempFile" is an ImageField: uploadedfile = request.FILES['uploadfile'] ProductFile.objects.create(FileName=UploadDate=datetime.datetime.now(), TempFile=uploadedfile) But, how do I manipulate the image

test upload xls file

2009-08-06 Thread maplye
this is my test code: def test_import_data(self): f = open('commend/fixtures/Book2.xls') postdata = {'datatype':'intonetwork','datafile':f} response = self.client.post('/commend/saledata/import_data/',postdata) self.failUnlessEqual(response.status_code, 200) but in the

Re: Upload ZIP-File into Database

2009-02-09 Thread Karen Tracey
with > > > these five files a mysql-database. Is there a possibility to handle > > > this via the admin interface? I tried the following but it doesn't > > > work: > > > > This sort of thing can certainly be done, the django-photologue > application > >

Re: Upload ZIP-File into Database

2009-02-09 Thread Ariel Mauricio Nunez Gomez
I did that once and had no problem customizing GalleryUpload for my needs. Try start writing some code and get back to us if it fails. http://code.google.com/p/django-photologue/source/browse/trunk/photologue/models.py#194 Ariel. --~--~-~--~~~---~--~~ You

Re: Upload ZIP-File into Database

2009-02-09 Thread Robert
tp://code.google.com/p/django-photologue/), for example, has a > GalleryUpload model that lets you upload a zip file of images and the zip > file is automatically expanded to its constituent images when you save a new > GalleryUpload object in the admin.  I have not looked at how exactly it i

Re: Upload ZIP-File into Database

2009-02-08 Thread Karen Tracey
e? I tried the following but it doesn't > work: > This sort of thing can certainly be done, the django-photologue application (http://code.google.com/p/django-photologue/), for example, has a GalleryUpload model that lets you upload a zip file of images and the zip file is automatically expanded

Upload ZIP-File into Database

2009-02-08 Thread Robert
Dear Community, I have a ZIP-File which contains five .lst-Files. I want to fill with these five files a mysql-database. Is there a possibility to handle this via the admin interface? I tried the following but it doesn't work: from django import forms from django.contrib import admin from