Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Incomplete file save of models.FileField.save
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
masterclock  
View profile  
 More options Jul 2, 8:31 am
From: masterclock <mastercl...@gmail.com>
Date: Thu, 2 Jul 2009 05:31:33 -0700 (PDT)
Local: Thurs, Jul 2 2009 8:31 am
Subject: Incomplete file save of models.FileField.save
I'm using python2.6 and django 1.0.2

class MyModel(Model):
    file = models.FileField(...)
    ...

mymodel = MyModel(...)

mymodel.file.save(...)

but the saved file is truncated.

when I use admin, the uploaded file is also incomplete.

could anyone give me a reason.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xiong Chiamiov  
View profile  
 More options Jul 2, 12:54 pm
From: Xiong Chiamiov <xiong.chiam...@gmail.com>
Date: Thu, 2 Jul 2009 09:54:21 -0700 (PDT)
Local: Thurs, Jul 2 2009 12:54 pm
Subject: Re: Incomplete file save of models.FileField.save
On Jul 2, 5:31 am, masterclock <mastercl...@gmail.com> wrote:

> I'm using python2.6 and django 1.0.2

> class MyModel(Model):
>     file = models.FileField(...)
>     ...

> mymodel = MyModel(...)

> mymodel.file.save(...)

> but the saved file is truncated.

> when I use admin, the uploaded file is also incomplete.

> could anyone give me a reason.

Are all files truncated?  Are they truncated to a certain size?  Does
this happen whether or not you're using the development server or
something else (Apache, etc.)?  Just to make sure, have you tried
different browsers?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
masterclock  
View profile  
 More options Jul 2, 8:08 pm
From: masterclock <mastercl...@gmail.com>
Date: Thu, 2 Jul 2009 17:08:59 -0700 (PDT)
Local: Thurs, Jul 2 2009 8:08 pm
Subject: Re: Incomplete file save of models.FileField.save
All files are truncated regargless of its size or file type.
and, each file is truncated to a certain size.
this happens even I don't use a server.
I tried saving a file in "manage.py shell" from local disk to local
disk, but it is still incomplete.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google