File Upload

2011-02-06 Thread vanderkerkoff
Hello everyone I'm trying to upload a file in a project, the app is called Documents, here's the admin.py from django.contrib import admin from governors.documents.models import Document import datetime class DocumentAdmin(admin.ModelAdmin): fields = ('title','slug','the_file','lang_code

file upload

2008-07-16 Thread Niall Mccormack
Hi there, I've been reading about django file uploads on various blogs. Are there still issues with uploading large files? I may be creating a site for a production company and will need to ability to upload 5-20mb video files through the cms. Is this just a silly idea? If so, are there an

file upload

2006-07-07 Thread Jay
Hi, Love Django! I can't figure out, however, how to upload files. The only examples I find are post-magic-removal. I'd ask on the irc channel, but I can't reach it. To make it as basic as possible, I just made a Supplement class with a foreign key to the logged-in User, and a FileField. I did

File Upload

2021-09-04 Thread Williams Andy Inc
Hi i am am trying to upload a file through a function but not the form and am facing difficulties how do i upload a file from server path without using the template form or forms.form ```class Image(models.Model): name = models.CharField(max_length=40, blank=True, unique=True) image_fi

File upload problem

2008-10-29 Thread Roodie
Hello, I have an interesting problem. One of the users of my ( test ) django site reported that he cannot upload image banners to the site using the custom admin. I've checked the logs, and found the following exception logged: Traceback (most recent call last): File "/usr/lib/python2.4/site-p

File upload over

2009-06-24 Thread alecs
Hi :) First of all I should say that I am not experienced in Django ;) I have some problem with file Uploading - if the file is large (700Mb) a strange thing happens with RAM&SWAP :( First it tries to cache something and all the 4Gb or Ram are captured, than the cache is purged and it begins to s

file upload issue

2009-07-29 Thread Salvatore Leone
Hello again, I know this is probably an already discussed question, but I can't get out of this. I've got a form which may or may not send a file, here is the snippet of my view function: if request.method == POST: #process the form ... if request.FILES: att

file upload formset

2010-04-16 Thread Alfredo Alessandrini
Hi, I'm trying to upload a file by a formset. model.py: --- class Person(models.Model): user = models.ForeignKey(User) course = models.TextField(blank=True, null=True) project = models.TextField(blank=True, null=True) CV_ENG = models.FileField(upload_to='upload/CV/',

Re: File Upload

2011-02-06 Thread Karen Tracey
On Sun, Feb 6, 2011 at 9:50 AM, vanderkerkoff wrote: > I'm trying to upload a file in a project, the app is called Documents, > here's the admin.py > > [snipped] More interesting than the admin.py for this model would have been the model definition itself. > > I keep getting an error I don't un

Re: File Upload

2011-02-06 Thread Chris Hannam
Hi, startswith is usually a string method. Looks like something is calling .startwith() on a tuple rather than the expected string. When you instantiate your model are you certain all the values are correct? Try logging all the values before creating the model and look for a tuple where there shou

Re: File Upload

2011-02-06 Thread vanderkerkoff
Hi Karen Thanks for getting back Here's the model def http://dpaste.com/391872/ On Feb 6, 3:33 pm, Karen Tracey wrote: > On Sun, Feb 6, 2011 at 9:50 AM, vanderkerkoff wrote: > > I'm trying to upload a file in a project, the app is called Documents, > > here's the admin.py > > > [snipped] >

Re: File Upload

2011-02-06 Thread vanderkerkoff
Hiya both I'm outputting all the data types I'm saving now in a save in the admin.py, they're all strings :-( I'm going to kick myself when I find it On Feb 6, 4:11 pm, vanderkerkoff wrote: > Hi Karen > > Thanks for getting back > > Here's the model def > > http://dpaste.com/391872/ > > On F

Re: File Upload

2011-02-06 Thread Karen Tracey
On Sun, Feb 6, 2011 at 11:11 AM, vanderkerkoff wrote: > Hi Karen > > Thanks for getting back > > Here's the model def > > http://dpaste.com/391872/ > > I cut and pasted that model definition, plus the model admin shown earlier, into a test project, and I'm able to add Documents in the admin with

Re: File Upload

2011-02-06 Thread vanderkerkoff
Hi Karen I promise you I'm changing the code that I'm displaying, I've been updating the app all day, just tying off some loose ends now. I've tried copying and pasting all the variables but it looks like garbage in dpaste. One thing that I'm not sure if right is the value of the the_file varia

Re: File Upload

2011-02-06 Thread vanderkerkoff
I got it :-) import os PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) # MEDIA_ROOT = ( # os.path.join(PROJECT_PATH, 'static/media/'), # ) MEDIA_ROOT = '/Users/mjdavies/Sites/django/governors/static/media/' statically pointing the media root works I use the same method above t

Re: File Upload

2011-02-06 Thread Karen Tracey
On Sun, Feb 6, 2011 at 12:45 PM, vanderkerkoff wrote: > I got it :-) > > import os > PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) > > # MEDIA_ROOT = ( > # os.path.join(PROJECT_PATH, 'static/media/'), > # ) > > MEDIA_ROOT = '/Users/mjdavies/Sites/django/governors/static/media/'

Re: File Upload

2011-02-06 Thread vanderkerkoff
Thanks again Karen On Feb 6, 6:06 pm, Karen Tracey wrote: > On Sun, Feb 6, 2011 at 12:45 PM, vanderkerkoff wrote: > > I got it :-) > > > import os > > PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) > > > # MEDIA_ROOT = ( > > #       os.path.join(PROJECT_PATH, 'static/media/'), > > #

File Upload fails

2011-03-17 Thread arapaho
Hi, Rather new to Django and using 1.2.5 and Windows, I am hung up trying to upload a file. I get a post request with request.FILES empty. My VIEW is: def intro(request): c = {} c.update(csrf(request)) if request.method == 'POST': #see if form submitted form = FileUploadFor

File Upload fails

2011-03-17 Thread arapaho
Hi, Please scratch the previous question--I found template errors were the cause. Thanks, Bob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, s

File upload limits

2011-06-05 Thread Siddharth Swaminathan
Hi, I have a django project where I have a form to upload files. The problem is that I'm not able to upload files larger than 192Kb. Is there some django setting that can be used to change this behaviour? Also, I've eliminated the possibility of apache configuration problems, coz a parallel dr

File upload error

2015-02-16 Thread Sola Chong
I having a error "*expected string or buffer*" when submit to upload avatar when edit profile. Can't figure out what is the problem.. *Model:* class MyProfile(models.Model): user = models.ForeignKey(User) dob = models.DateField(null=True, blank=True) address = models.CharField(max_len

File Upload perfomance

2007-12-30 Thread [EMAIL PROTECTED]
Hello, Django is looking promising as a web app plattform for us. We want to build an Webapp which major function is to allow users upload files securely and fast. File upload speed will be a major factor. Searching in this group and on google for django + file upload gave lot of negetive

file upload question

2008-05-06 Thread Chris
Hello I have a csv importer that I have made and I want to upload the csv file through a form field as so: from django import newforms as forms class ImportForm(forms.Form): """ Form for importing CSV files """ csv_file = forms.FileField() next I do something like this: for

Re: file upload

2008-07-16 Thread Julien Phalip
Hi, Django's upload handling has recently been refurbished and it is now possible upload large files without upsetting the server. Check the doc for more info at: http://www.djangoproject.com/documentation/upload_handling/ Cheers, Julien On Jul 16, 7:49 pm, Niall Mccormack <[EMAIL PROTECTED]>

newforms file upload

2007-05-02 Thread Vance Dubberly
Am I correct in my guess that uploading files and new forms are two things that just don't go together? I'm about to just do the file handling myself ( not a big deal ) but thought I'd check with the smart people before I went there. -- To pretend, I actually do the thing: I have therefore onl

Newforms file upload

2007-08-15 Thread Brian Morton
As I understand it, ticket 3297 is closed as resolved. However, I am still experiencing problems uploading files in newforms as of the latest svn checkout. Am I incorrect in my assumption that this has been fixed? Or am I experiencing issues of my own? Thanks. --~--~-~--~~---

File Upload Delima

2007-11-26 Thread Zack
I have been trying to upload files in my django project. It works fine with smaller files but when they get a little bit bigger it stalls my server. I have looked at ticket 2070 and I have tried to apply the patches but I can't quite get it to work. My set up seems to be different than most. I am

File Upload issues

2006-12-23 Thread [EMAIL PROTECTED]
Hello all, I posted a while ago about some file upload issues, i figured out how to upload a file with my custom manipulator, but now I am running into an issue where if I do not include file in my form I get an error message that "list indexes must be integers" My custom manipulat

file upload example?

2006-07-28 Thread cyberco
I'm having troubles understanding the logic of uploading files. I saw a lot of code snippets, but nowhere I can find an example that explains all the steps. This article comes close but is lacking some info as well: http://blog.go4teams.com/?p=56 I hope somebody here has a pointer to a good examp

Multiple File Upload???

2006-08-28 Thread cerealito
Hi everyone, I am trying to upload multiple image files in one of my projects. Single-File upload works fine, but how do I Get to upload many files in the same form? I have many of these in the templates: {{ form.picture }} {{ form.picture_file }} Then on my views i have

File Upload Issue

2005-10-15 Thread Bo Shi
Hi All, I've been playing with FileField and file uploading. I do have a problem that I can't seem to solve; when a file gets uploaded, it is placed in the media directory under some random filename the client was using. I would like to normalize this filename so that foo.txt is saved on the

Zip file upload

2019-01-01 Thread Suresh
hi guys, How to upload zip file and save unzip file in django? -- 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

media file upload

2019-09-18 Thread Luca Bertolotti
Hello i can't upload the file, i'm in a debug mode: the urls.is: from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('', include('polls.urls')), path('admin/', admin.site

Re: File upload problem

2008-10-29 Thread Benedict Verheyen
Roodie wrote: > Hello, > > I have an interesting problem. One of the users of my ( test ) django > site reported that he cannot upload image banners to the site using > the custom admin. I've checked the logs, and found the following > exception logged: > > Traceback (most recent call last): >

File upload failing occasionally

2009-01-04 Thread ppdo
Hi all, I am trying to port my first Django 1.0.2 application to run on OSX/ Leopard with Apache + mod_python 3.3.1 + python 2.6.1 (all running in 64-bit mode) and I am experiencing an occasional error when uploading a file that was not present when testing with the Django development server. Th

File Upload : Memory consumption

2009-06-24 Thread alecs
Hi! I'm trying to upload a large file (700Mb) and something wrong with django happens: First it starts caching enormously (4Gb of ram are used), than it starts to purge caches and starts swapping (1Gb of swap is used). Have you ever faced with such a thing ? Django 1.02, mod_wsgi + Apache 2.2 Than

Re: file upload issue

2009-07-29 Thread cootetom
Use a modal form for this which includes a file field that has required set to false. http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#topics-forms-modelforms http://docs.djangoproject.com/en/dev/ref/forms/fields/#filefield Easier to let django handle the request then figure it all

Django file upload. 'None'

2009-08-04 Thread Martje
Hey, I have the following HTML-code autogenerated for me by Django: That's ok according to my models.py: afbeelding1 = models.FileField(upload_to='media/afbeeldingen/ gastenboek/', verbose_name="", blank=True) afbeelding2 = models.FileField(upload_to='media/afbeeldingen/ gastenboek/', verb

Opera File Upload Issue

2009-03-30 Thread Peter
I'm having an opera file upload issue, which may not be django's fault, but I'm curious if anyone has seen it (and has a solution)... When I upload an image *only in opera* (specifically 9.64 on mac osx) it doesn't appear in request.FILES. However, if I upload a really small

file upload docs obsolete?

2009-05-14 Thread msoulier
I looked here http://docs.djangoproject.com/en/dev/topics/http/file-uploads/ and it mentions request.FILES being a dictionary, but the 1.0 porting guide here http://docs.djangoproject.com/en/dev/releases/1.0-porting-guide/ says otherwise. Was this overlooked? I think the page needs an update.

Problem with file upload!

2011-09-02 Thread Ludvig
Hello, Usually only read these posts so i hope i'm doing this right! Recently my file upload just stopped working, and i've no idea what i've changed. I noticed that request.FILES is empty so i've googled some and cant figured out my problem. My

Re: file upload formset

2010-04-17 Thread Karen Tracey
On Sat, Apr 17, 2010 at 2:54 AM, Alfredo Alessandrini wrote: > profile.html > --- > > {{ formset }} > > > --- > > If I change 'course' or 'project' it's work. But if I try to upload a > file don't work. Any suggestion? > > First problem (might be last problem al

file upload size problem

2011-03-11 Thread vamsy krishna
Hi, I'm doing a file upload from one of my forms and writing the content to a temp file on the server. The problem is any file of size more than 250 KB is throwing the below error: Request Entity Too Large The requested resource /tera/tera_upload/ does not allow request data with POST req

Re: File Upload fails

2011-03-17 Thread Matias Aguirre
You are missing the enctype form attribute needed for files input fields. Your form definition should be: Check http://www.w3.org/TR/html401/interact/forms.html#adef-enctype for details. Matías Excerpts from arapaho's message of Thu Mar 17 15:53:45 -0300 2011: > Hi, > > Rather new to Dja

Limiting file upload type?

2011-03-25 Thread Sithembewena Lloyd Dube
Hi folks, I have a model with a FileField, and I need to chech that the file is .mp3 before it is uploaded. How would I go about this without the hack of getting the file name and slicing it? -- Regards, Sithembewena Lloyd Dube -- You received this message because you are subscribed to the Goo

Re: File upload limits

2011-06-05 Thread ionic drive
This i guess is not a django setting. Its a setting of your webserver (Nginx, Apache2, etc.) If you do use Nginx as an example, this setting would be client_max_body_size. http://www.rockia.com/2011/01/how-to-change-nginx-file-upload-size-limit good luck scrapper On Sun, 2011-06-05 at 06:57

Re: File upload limits

2011-06-05 Thread Siddharth S
Its a setting of your webserver (Nginx, Apache2, etc.) > > If you do use Nginx as an example, this setting would be > client_max_body_size. > > http://www.rockia.com/2011/01/how-to-change-nginx-file-upload-size-limit > > good luck > scrapper > > > > On Sun, 20

issues with file upload

2012-08-21 Thread 软刀
raise ValidationError(self.error_messages['invalid_image']) ... well, I don't know well to set temporary_file_path and how to storage it with mongoengine.django.storage.GridFSStorage # this was snippet for class ImageField def to_python(self, data): "&q

Re: File upload error

2015-02-16 Thread Amirouche Boubekki
Héllo Sola, Can you post the full stacktrace not only the error? Regards On Mon Feb 16 2015 at 11:20:42 AM Sola Chong wrote: > I having a error "*expected string or buffer*" when submit to upload > avatar when edit profile. Can't figure out what is the problem.. > > *Model:* > class MyProfil

Re: File upload error

2015-02-25 Thread Amirouche Boubekki
Héllo again (at last) On Mon, Feb 16, 2015 at 11:20 AM Sola Chong wrote: > I having a error "*expected string or buffer*" when submit to upload > avatar when edit profile. Can't figure out what is the problem.. > I've setup a small project with your code (and small modifications) using django

File Upload in Django

2015-05-16 Thread SUBHABRATA BANERJEE
Dear Group, I want to upload file and form in Django. I am using Django 1.8 on Windows 2.7+ on Windows 7 Professional. I am bit new and I was confused how may I upload file and form in Django. If anyone may kindly show me an example tutorial. I tried some examples on Github and stackoverflow b

Re: File Upload perfomance

2007-12-31 Thread Brian Rosner
On 2007-12-30 20:53:34 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> said: > > Hello, > > Django is looking promising as a web app plattform for us. > We want to build an Webapp which major function is to allow users > upload files securely and fast. &

newforms file-upload troubleshooting

2008-01-31 Thread birkin
I've been trying unsuccessfully to implement a file-upload form. I put up the code from models.py, forms.py, and views.py, as well as the form template code and the generated form html at . I'd appreciate and welcome pointers to where I'm going wrong. Relevant info... - When I

File Upload with newforms

2008-03-10 Thread Paolo Ferretti
I've got a problem with file upload in django. I found some generic documentation like this: http://www.djangoproject.com/documentation/model-api/#filefield http://www.djangoproject.com/documentation/faq/#how-do-i-use-image-an... Reading that pages, I suppose that the file uploading copy

File upload doesn't work

2008-03-25 Thread Carl
Hi Djangonauts, i've a problem here driving me nuts - obviously I don't get it how to do a simple file upload: With a form like this: and a view function like this: def test(request): if request.method=='GET': return render_to_response('test.

File Upload, form issue

2008-04-16 Thread sparky
Hello all, I have a slightly unusual requirement: I want to use a FileField in a form but with a TextField in the model. (The content being uploaded is a big bit of flat text, but I want to store it in the database, not as a file.) The problem is that with the code that I have together the reque

Re: file upload question

2008-05-06 Thread Kenneth Gonsalves
On 07-May-08, at 3:51 AM, Chris wrote: > > Hello I have a csv importer that I have made and I want to upload the > csv file through a form field as so: > > from django import newforms as forms > > class ImportForm(forms.Form): > """ > Form for importing CSV files > """ > csv_file

file upload - race condition?

2008-05-09 Thread Alex Morega
Hi, There seems to be a race condition in Django's model code for file uploads. Here's the relevant code snippet (django/db/models/base.py line 458 in the latest SVN version - #7520): while os.path.exists(os.path.join(settings.MEDIA_ROOT, filename)): try:

File Upload Issues - ModelForm

2008-05-15 Thread mikelostcause
I have been searching and unable to find out why my script is not working correctly If i take the required = False off of the image, the error "This field is required" get's thrown, else the 'image' field seems to not exist in the data as I now get 'No Data in Cleaned Data' error from the clean_

File Upload with form_for_model

2008-05-22 Thread jabbercat
Hello, I want to upload files with a Form generated by form_for_model(). The form is ok, but I can't upload files, because I get different errors. I get an error, that FileForm has no attribute cleaned_data. Knows somebody the problem? Here my code: The template: Add a file

Re: newforms file upload

2007-05-03 Thread vega
Hi, in fact there is a working patch you can use: #3297 It's really out of my comprehension why fileupload and FloatField have been kept back (the latter due to design decision on decimals). I can't understand how the django-team suggests anybody switch to newforms without these 2 ver

Re: newforms file upload

2007-05-03 Thread Vance Dubberly
Thanks Sandro. I concur newforms beats the socks off maninpulator and validators but putting it in trunk prior to getting basic functionality completed was mean. But hey it's pre-1.0 so I guess anything goes. ;) Vance On 5/3/07, vega <[EMAIL PROTECTED]> wrote: > > Hi, > > in fact there is

File upload using Flash

2007-07-22 Thread [EMAIL PROTECTED]
Hi all, some time ago, probably on this list, someone posted a link to a component in Flash with which you could do file upload from Django. The component featured a progress bar. Does anybody have a link to it? Thanks, Lorenzo --~--~-~--~~~---~--~~ You

Re: Newforms file upload

2007-08-15 Thread Jonathan Buchanan
On 8/15/07, Brian Morton <[EMAIL PROTECTED]> wrote: > > As I understand it, ticket 3297 is closed as resolved. However, I am > still experiencing problems uploading files in newforms as of the > latest svn checkout. Am I incorrect in my assumption that this has > been fixed? Or am I experiencin

Re: Newforms file upload

2007-08-15 Thread Malcolm Tredinnick
On Wed, 2007-08-15 at 12:26 +, Brian Morton wrote: > As I understand it, ticket 3297 is closed as resolved. However, I am > still experiencing problems uploading files in newforms as of the > latest svn checkout. Am I incorrect in my assumption that this has > been fixed? Or am I experienci

Re: Newforms file upload

2007-08-15 Thread Brian Morton
I hit reply to author instead of reply. I think that is definitely the problem. I assumed that the file data would be in request.POST. I will go back and re-read the docs for newforms since it sounds like there are some API changes. Thanks to everyone who worked on this ticket, including Malco

Re: Newforms file upload

2007-08-16 Thread Collin Grady
The change is just that this: form = MyForm(request.POST) changes to this: form = MyForm(request.POST, request.FILES) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

File upload virus scanning

2007-11-20 Thread leifbyron
Hi there, Is anyone aware of a command-line tool that can be used to scan file uploads for viruses before they are saved to a file? I know this is not specifically a Django question, but I'm sure a lot of people would find the answer useful. Thanks, Leif --~--~-~--~~~-

General File Upload Questions.

2006-11-30 Thread Paul Childs
I have been investigating file uploads in general and also with Django in mind. This thread gave me a place to start: http://tinyurl.com/ymzmds

Error on File Upload

2006-12-21 Thread Stephen Mizell
We are using the admin for one our projects. In our model, we have: class Resource(models.Model): # ... filename = models.FileField(unique=True, upload_to="tick/resource", null=True, blank=True) We were just uploading an excel spreadsheet, which we've had no trouble doing in the past, an

File Upload Issues Help

2006-12-21 Thread [EMAIL PROTECTED]
Hello all, I posted a while ago about some file upload issues, i figured out how to upload a file with my custom manipulator, but now I am running into an issue where if I do not include file in my form I get an error message that "list indexes must be integers" My custom manipulat

Re: File Upload issues

2006-12-23 Thread Osso
On Dec 21, 2:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: # call the custom save() method from the manipulator # image upload seperate from the data save- this can be refractored to be more generic # save_FOO_file is an included method with a filefield

Re: file upload example?

2006-07-28 Thread Kenneth Gonsalves
On 28-Jul-06, at 5:29 PM, cyberco wrote: > > I'm having troubles understanding the logic of uploading files. I > saw a > lot of code snippets, but nowhere I can find an example that explains > all the steps. This article comes close but is lacking some info as > well: > http://blog.go4teams.co

Re: file upload example?

2006-07-28 Thread cyberco
now. What I was after was a more thorough guide of all the steps needed to get file upload working. The big picture, so to say. Still, thank to your help I finally got things working. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Multiple File Upload???

2006-08-28 Thread Russell Keith-Magee
On 8/29/06, cerealito <[EMAIL PROTECTED]> wrote: Hi everyone,I am trying to upload multiple image files in one of my projects.Single-File upload works fine, but how do I Get to upload many files inthe same form?... But my question is... How do I "save" them?imageManipulato

Re: Multiple File Upload???

2006-08-29 Thread cerealito
ealito <[EMAIL PROTECTED]> wrote: > > > > > > Hi everyone, > > > > I am trying to upload multiple image files in one of my projects. > > Single-File upload works fine, but how do I Get to upload many files in > > the same form? > >

Re: Multiple File Upload???

2006-08-29 Thread Russell Keith-Magee
On 8/29/06, cerealito <[EMAIL PROTECTED]> wrote: Isn't there a way to upload as many files as i want to (much like gmailhandles attatchments)and then associating them to the descriptions?Try this:class Description(models.Model):     text = models.CharField(maxlength=100)    class Admin:    pass

Re: Multiple File Upload???

2006-08-29 Thread cerealito
Russ, thanks a lot for your reply. I have tried the `edit_inline' thing, and it works fine in the admin interface. In fact, what I want to do is to achieve that but not only in the admin views but _also_ in my public intefrace views... And that's where i have this problem. I'm willing to write

Re: Multiple File Upload???

2006-08-29 Thread Russell Keith-Magee
On 8/29/06, cerealito <[EMAIL PROTECTED] > wrote: Is there anyway that i can catch those and pass them to djangoManipulator'sdo_html2python() and save() methods?Your request appears to have multiple files in it, which suggests that your template is working fine. As far as I can see, all that remain

Re: Multiple File Upload???

2006-08-30 Thread cerealito
Ok, as a reminder, here is the Image model I am using: class Image(models.Model): altText = models.CharField(maxlength = 128, null = True, blank = True) picture = models.ImageField(upload_to='img/%Y/%m') The problem is that i want to create multiple objects of this type from a single upl

Re: Multiple File Upload???

2006-08-30 Thread Russell Keith-Magee
On 8/30/06, cerealito <[EMAIL PROTECTED]> wrote: Well No, not exactly, and that's why started this thread. If I callthose methods, only one file (the last one in the form) will getuploded and its data saved to the database. The rest of the files inthe post request seem to be lost. You seem to have

Re: Multiple File Upload???

2006-08-30 Thread Russell Keith-Magee
On 8/31/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: On 8/30/06, cerealito < [EMAIL PROTECTED]> wrote: Well No, not exactly, and that's why started this thread. If I callthose methods, only one file (the last one in the form) will getuploded and its data saved to the database. The rest of the

Re: File Upload Issue

2005-10-15 Thread Luke Plant
> I have tried combining _post_save() and os.rename(...) to some limited > success but am not able to reset my FileField to the new file path (my > assumption is that using save() inside _post_save() causes infinite > recursion, no?). Clearly said strategy is an ugly hack with some > major problem

Re: File Upload Issue

2005-10-16 Thread Nebojša Đorđević - nesh
On 15-10-2005, at 9:57, Bo Shi wrote: I have tried combining _post_save() and os.rename(...) to some limited success but am not able to reset my FileField to the new file path (my assumption is that using save() inside _post_save() causes infinite recursion, no?). Clearly said strategy is an u

Re: File Upload Issue

2005-10-16 Thread Bo Shi
Hey Nesh, Moving the rename logic to _pre_save() would be the best way of doing things but I have a problem where I rename the uploaded file into one based on it's primary key. While in _pre_save(), self.id is None, so is there a way to access the value that will become the primary key? Bo

Re: File Upload Issue

2005-10-16 Thread Nebojša Đorđević - nesh
On 16-10-2005, at 20:43, Bo Shi wrote: Moving the rename logic to _pre_save() would be the best way of doing things but I have a problem where I rename the uploaded file into one based on it's primary key. While in _pre_save(), self.id is None, so is there a way to access the value that will b

Custom Manipulator File Upload

2005-10-26 Thread Armin
The world is different when you have a custom manipulator. It's more beautiful, except I can't find any docs on them anywhere. Here, I am uploading email in my custom manipulator using: formfields.ImageUploadField(field_name="photo") And showing it using {{ form.photo }} in my template whic

Implementing Multiple File Upload

2006-03-06 Thread Rob Cowie
Hi all, I wish to implement a system that allows users to upload multiple files and associate them with a model I have defined. The model is similar to the following: class Entry(meta.http://groups.google.com/group/django-users -~--~~~~--~~--~--~---

Re: Zip file upload

2019-01-01 Thread Joel Mathew
No ready made solution. You have to come up with your own solution. Use form to upload file On Wed, 2 Jan, 2019, 9:57 AM Suresh hi guys, > How to upload zip file and save unzip file in django? > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: media file upload

2019-09-18 Thread mohammed habib
Make sure to add ‘enctype="multipart/form-data"’ to your form tag, so that the file data is included in when the form is submitted https://stackoverflow.com/questions/4526273/what-does-enctype-multipart-form-data-mean Sent from my iPhone > On 18 Sep 2019, at 17:38, Luca Bertolotti wrote: > >

Re: media file upload

2019-09-18 Thread Luca Bertolotti
Thanks Luca Il giorno mercoledì 18 settembre 2019 19:29:00 UTC+2, mohammed habib ha scritto: > > Make sure to add ‘enctype="multipart/form-data"’ to your form tag, so > that the file data is included in when the form is submitted > > > https://stackoverflow.com/questions/4526273/what-does-encty

Re: media file upload

2019-09-18 Thread Luca Bertolotti
thanks Il giorno mercoledì 18 settembre 2019 19:29:00 UTC+2, mohammed habib ha scritto: > > Make sure to add ‘enctype="multipart/form-data"’ to your form tag, so > that the file data is included in when the form is submitted > > > https://stackoverflow.com/questions/4526273/what-does-enctype-mul

File upload and access properties

2008-08-25 Thread Julien Phalip
Hi, I'm using the FileSystem storage to save uploaded files, in a very basic way: storage.save('/blah/test.mp3', uploaded_file) Now, the resulting file has '600' file access properties. That file is then served by apache, but because of those access properties, it cannot be accessed as you get

Re: File upload failing occasionally

2009-01-04 Thread Graham Dumpleton
On Jan 5, 10:24 am, ppdo wrote: > Hi all, > > I am trying to port my first Django 1.0.2 application to run on OSX/ > Leopard with Apache + mod_python 3.3.1 + python 2.6.1 (all running in > 64-bit mode) and I am experiencing an occasional error when uploading > a file that was not present when t

Re: File upload failing occasionally

2009-01-04 Thread ppdo
Hi, Thanks for looking into this. I used embedded mode and the error is the following (different message, but same place in multipartparser.py): IOError at /myapp/upload/2009-01-03/1 request data read error Request Method: POST Request URL:http://127.0.0.1/myapp/upload/2009-01-03/1 Exception

Re: File upload failing occasionally

2009-01-05 Thread ppdo
The failure does not depend on the file size: I manage to upload files bigger than 60 MB and fail on 30 kB files. I tried with Safari and Firefox and I got the same results, though I got the *impression* (but given the randomness of the problem I am not sure this is a real observation) that it fa

Re: File upload failing occasionally

2009-01-05 Thread Graham Dumpleton
Sorry, some more questions. How big are the files you are trying to upload? What browser/client are you using to do the uploads? What do you have Timeout directive set to in Apache configuration? Graham On Jan 5, 6:24 pm, ppdo wrote: > Hi, > > Thanks for looking into this. I used embedded mo

Re: File upload failing occasionally

2009-01-05 Thread Graham Dumpleton
On Jan 5, 8:33 pm, ppdo wrote: > The failure does not depend on the file size: I manage to upload files > bigger than 60 MB and fail on 30 kB files. > > I tried with Safari and Firefox and I got the same results, though I > got the *impression* (but given the randomness of the problem I am not

Re: File upload failing occasionally

2009-01-05 Thread ppdo
I tried to monitor the interface using WireShark and the communication just hangs during a data transfer: Apache is just acknowledging the receipt of some packets and then just seems to hang. The suspicious bit is a fairly long series of http RST about 20ms before the server hangs. Though I'm not

Re: File upload failing occasionally

2009-01-05 Thread Graham Dumpleton
On Jan 6, 9:30 am, ppdo wrote: > I tried to monitor the interface using WireShark and the communication > just hangs during a data transfer: Apache is just acknowledging the > receipt of some packets and then just seems to hang. The suspicious > bit is a fairly long series of http RST about 20m

  1   2   3   4   5   6   >