Questions tagged [filefield]

299 questions
0
votes
2 answers

parse CSV in Flask-Admin/WTForms on model_change

Suppose the Flask-Admin view below (note I'm using flask_wtf not wtforms). I'd like to upload a csv file, and then on the model_change, parse the csv and do some stuff to it before returning the result which will then be stored into the model.…
Chrispy
  • 1,300
  • 3
  • 11
  • 25
0
votes
1 answer

Submit all of grid rows with Extjs form submit

I have a grid panel in a form. Any row of the grid panel have a filefield. I want to send any row (name field and filename field) to server. Model: Ext.define('FM.model.DefineCode', { extend: 'Ext.data.Model', fields: [ {name: 'id',…
Morteza Malvandi
  • 1,656
  • 7
  • 30
  • 73
0
votes
1 answer

File field in any row of extjs grid panel

I want to create a grid panel and for any row added by user, insert a file, In other words one column in any row is a file field. How can Id do this? update: Ext.define('FM.view.map.DefineCode', { extend: 'Ext.window.Window', title: 'Define…
Morteza Malvandi
  • 1,656
  • 7
  • 30
  • 73
0
votes
2 answers

php code for inserting text file into the database

hey i have form which has a file field. After selecting a file,i want to insert the selected file into the database column. how do i do it?
rabeea
  • 7
  • 1
0
votes
1 answer

Drupal creating organic groups using drupal_execute

I'm trying to create a node programatically and use the Filefield Module to upload a file from a remote url. The node is being created properly but I can't get the remote url upload working. Anyone have any experience with this?
digital
  • 2,079
  • 3
  • 25
  • 35
0
votes
1 answer

PHP upload file and text from multiple text fields to mysql

I'm making a form with 5 text fields and 1 file field. When I tried having 2 text fields it works but if there's more,nothing works.The image successfully uploads to the folder. here's what i have so far. I'm still a noob and i'm in the stage where…
kim
  • 63
  • 2
  • 12
0
votes
1 answer

PHP upload filename to mysql

This code transfers the file to the specified folder and db table but when I launch/open/run the page on the browser,it automatically sends something to the db table and the filename field is empty.I haven't even clicked/uploaded anything yet. I…
kim
  • 63
  • 2
  • 12
0
votes
1 answer

django set media path to default image in model

My project structure: MyProject/ App1/ App2/ MyProject/ Static/ uploads/ image.jpeg/ In my settings I have: STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'static'), ) MEDIA_ROOT = os.path.join(BASE_DIR,…
gamer
  • 5,673
  • 13
  • 58
  • 91
0
votes
1 answer

is it possible to have path string as the argument to django filefield?

I have to create and save django model containing filefield with a downloaded attachment. somefield = models.FileField(upload_to='somefolder/%Y/%m/%d') I have downloaded the attachment but when I give path to the downloaded attachment as filefield…
0
votes
1 answer

Rails nested multi file upload to amazon s3 using s3_file_field

I've been trying to get multi image uploads working on a nested model in rails. I've been using the s3_file_field gem, which can be found here. I've created a gist which shows the relevant parts of my code which is available here. When I try to…
0
votes
1 answer

How to use Multiupload Imagefield in Drupal 7 Form API?

I'm trying to make work Multiupload Imagefield Widget in my Drupal 7 custom module with Form API... but it doesn't work :( When I push the "Upload" button the throbber appears for a second and nothing more happens, only refreshing page. Can anybody…
0
votes
1 answer

How to fire onblur event on browse button of a filefield?

If I click the textbox that comes with the file field and move the mouse away, onblur event is fired. How do i ensure the blur event is still fired when i click on the browse button and move the cursor away, without clicking the filefield…
nixxx
  • 423
  • 1
  • 9
  • 23
0
votes
1 answer

ExtJs filefield dissappears after first use

I'm trying to use the ExtJs filefield control to upload a file. I use it as follows: xtype: 'container', margin: '15 0 0 25', layout: 'vbox', defaults: { width: 400 }, items: [{ xtype:…
user1028741
  • 2,745
  • 6
  • 34
  • 68
0
votes
1 answer

Get full path of file_field image in rails

I am trying to get the full path from an image I am uploading with the rails file_field helper. %h4 Upload Image .col-sm-8 =label_tag "Upload Image" .col-sm-4 =form_tag(controller:"images", :html => {:multipart => true}) do =select("app",…
BC00
  • 1,589
  • 3
  • 29
  • 47
0
votes
2 answers

How to download a FileField in django

This is my model class Informe(models.Model): id_paciente = models.ForeignKey('Paciente') id_medico = models.ForeignKey('Medico') id_tecnico = models.ForeignKey('Tecnico') contenido = models.FileField(upload_to='informes',…
R3dolaf
  • 5
  • 1
  • 4