FileField is a Drupal 6 module that offers improved file upload features.

learn more… | top users | synonyms

0
votes
1answer
27 views

Kaltura media field in Drupal 7 [on hold]

I'm using Kaltura module. I want a max upload size for the media field. How can I do that?
0
votes
1answer
34 views

File field upload in modal/dialog

I have a custom content type with file field as one of the fields. For theming/UI purposes I should make this file field as clickable button. And only when user clicks on it, he/she gets modal window ...
0
votes
0answers
9 views

file upload not showing when error on form

I have a cck field file that is upload maximum 3 files in my form as show below. but when i upload files with filling all information in all fields in form then working porperly like show below. ...
1
vote
1answer
34 views

How to link an image with a PDF?

Actually, I have a content type with 2 fields, image field (multiple) which will contain some pictures and an attachment field (accept only one file) which is file of type PDF. I have a view where I ...
0
votes
0answers
22 views

How do I add a file formatter?

I have used the accepted answer on this post to create and enable a custom module, but the new formatter doesn't appear in the list when I edit the file field in my view. My info file looks like ...
1
vote
1answer
18 views

Tabledrag in grid shape for media form field widget thumbnails

I am looking for a way to change the tabledrag into a grid shape. A nice looking solution for drag-and-drop uploading files and sorting them in a way that jquery sortable does. It should end up to be ...
0
votes
1answer
51 views

Get file ID and path to use in View template

I am working in my Row style template (views-view-fields--MYVIEW--block-1.tpl.php). I need to get the file ID and path of an image. The image field is a multi field, so I need to get all of the images ...
1
vote
1answer
26 views

Drupal 7 Form API file field - not recognizing the imported file

function test_data_import_form($form, &$form_state) { $form = array(); //$form['#attributes'] = array('enctype' => 'multipart/form-data'); $form['import_data'] = array( ...
0
votes
0answers
8 views

Drupal deletes all files from a multiple-file field on an error

In Drupal 7, I have a file field in a content type defined with a size limit of 8MB per file and unlimited files. That works fine, the problem is that when a file is uploaded that is 9 MB. Then, an ...
1
vote
3answers
19 views

Migrate files attached to comments from D6 to D7

While migrating from Drupal 6 to Drupal 7 (into a new blank site), I noticed that files attached to comments are not handled by the Migrate module. The D6 site uses a contributed module ā€˛Comment ...
0
votes
1answer
19 views

How to user listen the songs after purchasing their songs or products using Drupal commerce?

I am using Drupal commercekickstart.. I have installed Commerce file module and Commerce license module also.If user purchasing their product after that their can download the files at the same time ...
0
votes
0answers
51 views

Trigger Rule with Filefield 'when field has changed'

This problem has been giving me a headache for four days now, so I thought it'd be best to see if somebody knows of a better answer than me :) I've got a set of different rules that check if various ...
0
votes
1answer
23 views

File module not updating field

I have a File field for uploading pdfs. When editing the page, I remove the current pdf and upload a new pdf. The new pdf is uploaded to the server and add to the /sites/default/files folder and I can ...
0
votes
1answer
18 views

Upload file in system_settings_form in Drupal 6

I have a code that was supposed to upload 2 files: function lafemme_background_images_form() { $form = array(); $form['#attributes']['enctype'] = "multipart/form-data"; ...
0
votes
1answer
97 views

How to add delete button to file field upload widget that actually deletes the file (not just association with content)?

After uploading a file with the File widget for the File field, the file is on the server and remove only disassociates the file from the field (and the content that the field belongs to). I would ...
0
votes
1answer
34 views

How to find content that uses a File (File Entity)?

Want to be able to see what content has file field(s) that refer to a specific file. Is this do-able using a View (with Relationships)? (had a go already, unsuccessful so far). Alternatively I'd ...
0
votes
1answer
92 views

Services 3 - updating a custom field in a user account

I'm using Postman in Chrome to test my services. I'm sucessfully able to create user accounts using the following: Headers: Content-Type /application/x-www-form-urlencoded X-CSRF-Token ...
1
vote
0answers
40 views

Default file upload for a field created in content type

In Drupal7 we have an option to upload an "default image" while creating a "Image field" in content type. Likewise, I need to know is there is any option to add default "pdf or text file" for "File ...
1
vote
1answer
23 views

Load file of content by weight

Let's suppose I have a simple content type with title, body and file fields, and file field is multi value. I create a piece of content and upload some file in my field. Finally my content is ...
0
votes
2answers
60 views

Add commas between allowed file extensions

I need to restrict the user to upload only the file extensions that i mentioned in the Allowed file extensions filed. It works properly. But in front-end, i need to add a comma separator for this ...
1
vote
1answer
27 views

filefiles node and comment in one view

I have a content type called "Document" where i have a "file" field so i can upload files. I also have comments enable where another users can add a comment and also upload more files. Whats i would ...
1
vote
1answer
100 views

I get 404 when uploading private *image* files in D7

I have this Drupal 7.15 site (it needs an upgrade, I know). I have some public and private files in there (all according to my settings). I have a public file field and a private file field. So, ...
0
votes
1answer
81 views

Field widget item form alter for file field

I want to alter field widget item form of a file field with cardinality > 1 so that a new form element is added to each row of the file tables. For example, in the attached image, I want to add ...
0
votes
0answers
29 views

file_managed vs files tables

I am attempting to add a file to a node. I am using the following code which is saving the file to the file_managed table in Drupal without issue: //query old DB for the pieces of the file I need ...
0
votes
2answers
49 views

field output dependend on mime type of another field

I have a node type with 2 fields: preview_image and file (multivalue). I can upload image and video files. For the output I need the following: The preview_image should only be displayed when the ...
1
vote
1answer
63 views

Private files won't be saved anymore in their intended location? (D7)

I've got a D7 installation for some time now, with a content type that has a "private file" field. It was working just fine up until now. My files usually got uploaded like: ...
1
vote
1answer
25 views

How to use long file description?

Is there any easy way to store a long text description of an uploaded file? I want to provide a long description field (textarea) when users upload files, so they can write as much as they need. ...
1
vote
0answers
17 views

Drupal 7 - Change of Files/Image location to a new organized structure

I would like to clean up savely the exstising files Drupal 7 structure and change the location of my exsisting Files/Image to a new organized structure e.g. in files/content-type/year/node-id Would ...
1
vote
1answer
148 views

Change values of nested fields with entity_metadata_wrapper

The background of this question is that I'm trying to migrate data from Drupal 6 Imagefield Extended to Drupal 7 File Entity (with File Entity Inline). See also https://www.drupal.org/node/974888 ...
0
votes
0answers
211 views

Max File Upload Size set to big, but Ajax Error with old file size

I have changed the max file size and the max body size in my php.ini to 15 MB. It used to be 2 MB. Drupal displays the max file size correctly, but when I try to upload files bigger than 2 MB - the ...
0
votes
1answer
289 views

How can I overwrite uploaded file via Filefield?

By default in Drupal 7, if I upload image.jpg via a file field in my node, save the node and then edit that same node and re-upload image.jpg, it will name it image_0.jpg. I want to replace the image ...
0
votes
1answer
285 views

Drupal 7 - Unable to set file upload destination private when programmatically creating new content type with file field

I am creating a module to upload video to an in house media converter - as part of the module installation I create a new content type called "user video" which has a file field as part of it. I need ...
1
vote
1answer
42 views

Moderate user uploaded images

I want offer a solution that a registered user can upload Images through File entity but like Copyright, Privacy and laws i want to check the image before the Image will be public. The best solution ...
0
votes
0answers
81 views

change node types file fields widgets programatically?

I have installed multi_upload_filefield_widget. I would like to change every file widget of every file type fields of every node type programatically. i would need to automate this change since i ...
0
votes
0answers
72 views

Display a representation of a Word Doc in the browser

Or, how could I embed JPG/PNG representation of Word Doc's first page in the browser window? I've a client who requested to display an uploaded Word Docs (form a File Field) to the browser. Might ...
0
votes
0answers
63 views

Auto OpenGraph og:image problem - D6

I just install this module on Drupal 6 : https://www.drupal.org/project/auto_opengraph It's seems work for all og:type like og:title, og:description... but i don't know how to setup og:image. I'm ...
2
votes
1answer
797 views

How to programmatically create Drupal 7 node with image file saved from remote source?

I have a remote image URL address saved in $image_url variable and the following code to programmatically create a node: $node = new stdClass(); $node->uid = '1'; $node->type = ...
0
votes
1answer
21 views

Is there a stable way to fill a filefield/imagefield via bulk upload in D7

OK, here's the deal. I've implemented image gallery nodes in D7 the straight-forward way, i.e. create node type 'gallery' and add an imagefield with unbounded number of values. Nice markup via ...
0
votes
1answer
284 views

Large file uploads stop immediately, 404 error

I am having a weird problem with uploading large files in the Drupal admin's file field. I have the size limit set to 500 MB. I also have the php.ini settings for upload size, post size, and memory ...
0
votes
2answers
261 views

instant upload after select file in a file or image field (quit upload button) [duplicate]

In the normal fashion you have to select the file you want to upload in a file field or image field and then click "upload" button. this is not very "user friendly" How to upload the image or file ...
0
votes
3answers
85 views

Post or upload file to specific user

I am new to Drupal, I wonder how can I post file(s) that should be viewable to specific user? for example upload a pdf invoice to a specified user? Thank you!
0
votes
1answer
138 views

File upload functionality on node display page

I wants to provide upload button on node display page. By click button able to upload files. For this i am doing change in node.tpl file. <?php //code added if($node->title=='Course ...
0
votes
0answers
65 views

How can I get the file field uploaded file path of a node?

I am using the tpl file to creat a node page to contain the video player, JW player. I have created 2 content types,in one of it , I build a file field to upload the video, another file field to ...
0
votes
2answers
420 views

Download count of file in table of files

So I wanted to add date alongside the size of the file in filefield table of files so I added this snippet to templates.php function mytheme_file_formatter_table($variables) { $header = ...
2
votes
2answers
391 views

Hide “Submit”/“Save” button until file has finished uploading

I'm having a problem where my site users are submitting a form before the files they are uploading into filefield are finished, this is causing an ajax error to pop up along the lines of "an ajax HTTP ...
0
votes
1answer
51 views

Automatically inheriting title for image

Is there a way to inherit the title or copyright field in the properties of a picture on your pc to the title or alt field of an image in drupal? What I want to achieve is the following: I want ...
0
votes
1answer
159 views

Picking image from server: FileField_Sources not working

I currently have some nodes that use images. Problem is: every time I want to choose an image, I have to upload it again. It would be much better if I could just use a path picker, which could show ...
0
votes
1answer
36 views

File Upload in Selected Location

I have file field in a content type to upload files. I have also created a drop down which has different values like folder 1, folder 2, folder 3 and so on. I want file field to upload my files on ...
0
votes
1answer
32 views

Unable to show the Uploaded Image by the user in user submitted form for node

On my site, we have a form which directly adds data into one content type. When user submits the form, all the field data is inserted. It's working fine except the Image field. What I want is that ...
0
votes
1answer
135 views

Programmatic filefield value/Default Filefield value

I have a module that takes a file uploaded to an entity, changes it and then saves the new version on my server in a folder based on the user id and entity title. $where = 'private://' . ...