Questions tagged [django-file-upload]

Django-file-upload refers to how django handles file uploads

Django-file-upload refers to how django handles file uploads.

See documentation.

325 questions
2
votes
1 answer

Django: Save link to a local file w/o uploading file

I'm trying to save the link to a local file in my model using a model form. I don't want to upload the selected file itself, I only want to save the fullpath to the file: Select a file via on the rendered form view Submit the…
Malte Jacobson
  • 215
  • 1
  • 11
2
votes
0 answers

Django form wizard does not remember file uploaded using jasny

I have included Jasny fileupload component on an existing form part of a wizard. Everything is working well on the form itself. The trouble is that when navigating to the next form of the wizard, then going back the file uploaded by the user…
Hugues
  • 653
  • 4
  • 19
2
votes
1 answer

Upload image using Django

I am trying to upload an image using Django and there is no errors. But there is no file or directories inside the media folder.And except image field all other fields are updated in table. Models.py from django.db import models # Create your…
mridul
  • 1,986
  • 9
  • 29
  • 50
2
votes
1 answer

Django-File Handling

I am building an application that allows users to upload images. I am using django-storage with S3 boto to store the images in S3. I am very new to Django and have a few questions. Are the temporary files created during upload deleted…
Saransh Mohapatra
  • 9,430
  • 10
  • 39
  • 50
2
votes
1 answer

How to check if a FileField has been modified in the Admin of Django?

I am trying to do a model with a file that shouldn't be modified. But the comment of the file can be. Here is what I did, but we cannot modify the comment. How can I test if a new file (using the browse button) as been sent and in this case only,…
Natim
  • 17,274
  • 23
  • 92
  • 150
2
votes
2 answers

Django file upload via API

I'm new to django and been designing some basic models that contain FileFields. Here is an example of my model: class Sample(models.Model): pub_date = models.DateTimeField('Publish Date', default=datetime.now) upfile =…
2
votes
1 answer

Django upload file per user relationship error

I'm making an app, which requires users to upload some files. I want to store all files in a username folder (and possibly, later move it outside the project folder, but that's other thing) First I'm doing some tests, I took this example S.O: Need a…
aesptux
  • 128
  • 1
  • 8
2
votes
1 answer

Easiest way to display uploaded (image)file?

I'm trying to my first attempt at django file-uploading, and all i need at the moment is a way to display an uploaded image (png/jpg) to the user that uploaded. No need to save it anywhere. My views.py: (i'm using django forms, btw) if…
BSG
  • 1,382
  • 4
  • 14
  • 25
2
votes
2 answers

Django: How to upload directly files submitted by a user to another server?

I'm using Django 1.4. There are two servers (app server and file server). The app server provide a web service using django, wsgi, and apache. User can upload files via the web service. I'd like to upload directly these files to the file…
Ryo Hanaba
  • 21
  • 2
2
votes
3 answers

How to extract File Object from Django Form FileField

I have created a ModelForm with fields, title, file and content. Here file is a FileField(). But I can't call the save() method of this form due to some reasons. So I have to maually created one Model Object and assign cleaned values to that object.…
Jubin Thomas
  • 1,003
  • 2
  • 12
  • 24
2
votes
0 answers

Large File PUT requests on Heroku using Django

I'm creating an API for a Django application and one of the PUT requests allows for a (very) large file upload. I'm trying to host the application on Heroku, but I'm running into some issues with the file upload and 30 second limit and ephemeral…
Jared
  • 21
  • 1
2
votes
1 answer

ImageField doesn't upload

I have been trying to implement a image upload for changing avatar for individual users. The problem I have right now is that it never uploads to the folder. It works from the admin but it doesn't work on the template I've created views.py if…
starcorn
  • 8,261
  • 23
  • 83
  • 124
1
vote
1 answer

Trouble uploading lots of file in Django

I'm having problems when uploading lots of files in Django. The context is the following: I've a spreadsheet with one or more columns being image filenames; those images are being uploaded through an form with input type=file and the option…
momenezes
  • 111
  • 8
1
vote
2 answers

Django CMS, Filer, and Cumulus for Cloud Files

I have django-cms set up with the cms plugin filer on a Rackspace cloud server. I have been reading and searching around and found cumulus. Is there a way to make all three work together in a way that I can use filer from the cms to upload via…
Justin M
  • 1,065
  • 2
  • 10
  • 15
1
vote
1 answer

How to upload an image and store its link in database

I read some documents in Django site such as: Basic file uploads and FileField.storage. However, I still don't understand how to upload a file (or an image) to server and store its link in database. I would like to write the files to the following…
Thinh Phan
  • 655
  • 1
  • 14
  • 27