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

learn more… | top users | synonyms

0
votes
1answer
17 views

AWS S3 Bucket - File Explorer Field

I'm looking for a file field module that will allow me to select files from an AWS S3 Bucket, but not upload them. A client of mine is going to be uploading csv files via ftp from a different ...
0
votes
0answers
13 views

Node convert - convert file field

I've used Node_convert module version 7.x-1.2 I tried to convert one content types to another. In which i've fields title, body, file with custom location. When i tried to convert nodes, it converts ...
3
votes
1answer
54 views

Is there a way to use File Field but have it’s directory path be different for different instances of content, instead of the same?

I’m selling mp3’s via Commerce File/File Field modules and i need these files to reside in different directories based on artist name and album name, etc. For example: ...
0
votes
0answers
17 views

drupal 7 programmatically upload file to custom file field

I am trying to update a node, and programmatically upload a file the current code is here : $nid = 45343; $node = node_load($nid); $image_url = 'http://test.com/misc/druplicon.png'; $file = ...
0
votes
2answers
35 views

Add/attach saved pdf to node with rules

I have a setup with views PDF which send email after creating a node. (This works) For logging purpose I would like the PDF added to my node in a filefield. Is there a rule action/php code available ...
2
votes
1answer
37 views

Extract PDF front page and store it as an image field in node

I'm using Document Library module to manage my files and create listings for them. I've also noticed the existence of PDFPreview module and I'd like to ask if the following is possible: I'd like to ...
0
votes
1answer
31 views

How to seperate products images folders based on product display categories?

I am building a drupal 7 commerce site, I have installed inline entity form module and adding products from inside the products displays. Since I will have thousands of product displays and products, ...
0
votes
2answers
19 views

How to fix broken file.module function 'file_ajax_progress' without hacking the core and patching after every update?

When site has enabled page cache and anonymous user tries to upload a file, he cannot see upload status progress. He see only message "Starting upload...". Bug was reported in June 2012, has a working ...
0
votes
0answers
16 views

Add random element to files in private so they can't be guessed

I want to add a random element to files in the /private/ directory so filenames cannot be guessed. In other words, when a file is uploaded by the admin I want the URL to download the file to be: ...
1
vote
2answers
84 views

How to import image using Feeds which doesn't have a correct file extension?

I am using Drupal 7 and Feeds to import an image field into a content type article and it does work when the image URL is a direct link to the image. However images that are linked to image handlers, ...
0
votes
1answer
40 views

A deleted image filename is printed to the top of SOME of my nodes

Background: I once had an image file in the site (I think the image was added via an image-field I already deleted). The problem: This image filename I described is printed to the top of SOME of my ...
0
votes
0answers
9 views

Module for bundle field or sub field

Is there a module can do as in the attached image instead of translate the whole page, just add multi file in different languages.
1
vote
1answer
108 views

Hoes does drupal 8 expect to see private file folder specified?

In setting.php I specified as /home/username/myfiles Under Config->File System it shows the path, but when I add a file field to content, it does not show private upload as an option. I am wondering ...
0
votes
0answers
20 views

How to set default form values based on query string, if the form uses AJAX file upload

I have a Book content type with a file upload field. I'm using Filefield Sources module with Plupload integration for getting the file upload widget. I need to set a default value based on the query ...
0
votes
3answers
157 views

How to programmatically assign (attach) a file to file field while creating/saving the node?

I'm trying to assign (not upload) files to nodes programmatically. This is the scenario: I will create 2000 nodes and there are 2000 PDF files (one PDF per node). I don't want to upload these files ...
0
votes
1answer
71 views

What causes 'Invalid form POST data' when removing an attached file from a node? [closed]

I have an attached PDF file on a file field. When I click the 'Remove' button, the AJAX throbber appears and then the file remains unremoved. Adding an file to a new node still works. I checked the ...
5
votes
2answers
124 views

How to move files already uploaded to a new subfolder?

I've got a bunch of files in sites/default/files that I'd like to move to a sites/default/files/subfolder to avoid a big mess. The fields uploading files have been configured to put them in the right ...
1
vote
0answers
11 views

Getting a node-uniqe identifier such as node id or path as replacement pattern at node creation

I have a content type which consists of a large text field and a number of file fields. Users are allowed to /node/add instances of this content type and are then expected to upload all relevant files ...
1
vote
1answer
77 views

How to use Rules' “set data value” with image fields?

I would like to be able to create an entity using Rules, and then populate the image field of the entity with an image file using "set data value". When populating text fields using "set data value" ...
3
votes
1answer
124 views

Is uploading/download executable files harmful in drupal? [closed]

In my site design, I have a field that is designed to hold an executable file (.exe, .bat, etc), for users to upload and download. I took pause as I was typing these extensions into the Allowed file ...
0
votes
0answers
11 views

How can i fix File_Attach feature? which is not working via the Filefield_Sources module

Has anyone here had any experience using the File_Attach feature, which is a feature of the FileField_Sources module? It is not seeing the files i’ve added to the default/file/file_attach folder. I ...
1
vote
1answer
157 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
14 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
58 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 ...
1
vote
0answers
30 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
32 views

Tabledrag in grid shape for media form field widget thumbnails [closed]

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
93 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
35 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
9 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
39 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
27 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 ...
1
vote
0answers
82 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
25 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
24 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
196 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
51 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
224 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
53 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
28 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
74 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
2answers
30 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
139 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, ...
1
vote
1answer
190 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
56 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
60 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
69 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
46 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
20 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
228 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
289 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 ...