Top "Filefield" questions

copy file from one model to another

I have 2 simple models: class UploadImage(models.Model): Image = models.ImageField(upload_to="temp/") class RealImage(models.Model): Image = models.…

django copy filefield
Django FileField default file

I have a model which contains FileField as below class Employer(models.Model): logo = models.FileField(storage=FileSystemStorage(location=settings.…

django django-models default-value filefield
Dynamic path for django FileSystemStorage

I was trying to save some files using Django FileSystemStorage. My model is as shown below key_store = FileSystemStorage( location=…

python django django-models filefield
Extjs - upload file using filefield

My extjs code like http://www.objis.com/formationextjs/lib/extjs-4.0.0/docs/api/Ext.form.field.File.html Ext.create(…

extjs extjs4 extjs4.1 filefield
customising the look of f.file.field in rails

<div id="photo_attachment_container"> <%= f.file_field :photo %> </div> Currently this just looks …

ruby-on-rails css ruby input filefield
How to get the link of the file in a FileField?

how can I get the link of a FileField? I tried the url field, but it gives the file path: …

django filefield
Renaming files in Django FileField

I know that there is a very similar thread here, but I cannot find the solution to my problem. I …

django file django-models filefield
Copy a file in Ruby on Rails

I would like to copy a file from my computer to another specified path. The file has to be chosen …

ruby-on-rails file csv copy filefield
Drupal 7: Rename files on upload (via filefield)

I am looking for a way to rename files that are uploaded by users through a filefield. For example, rename …

file-upload drupal-7 filefield imagefield
Django models.FileField - store only the file name not any paths or folder references

I'm using Django's Admin site to manage some data - but not building a webapp. I need the file upload …

python django filefield