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
>
Document
https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css;
integrity=
"sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"
crossorigin="anonymous">
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
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
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
>>
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
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
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
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
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
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
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
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
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>
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.
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
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 =
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,
-- 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
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
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
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
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
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,
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
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
{%
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
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"
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.
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
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
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
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
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
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
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
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.
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
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."
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
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,
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
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,
, 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
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
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
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']
>
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
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
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
> >
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
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
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
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
54 matches
Mail list logo