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

learn more… | top users | synonyms

0
votes
0answers
9 views

Conditional 'link' field text using Conditional Views module

I have installed the Conditional Views module, but can't quite understand how to use it to get my desired result. I have a field 'asset type' and the default link field ([view_node]). I would like ...
1
vote
1answer
10 views

Get URL of Views 'file' field

How can I get just the url of the uploaded file from the Views module 'file' field. If I do the following: print $view->render_field('field_url', $id); I get the entire 'file' object in html ...
1
vote
0answers
36 views

How to define a custom “node add” & “node edit” forms with ajax based fields (file fields)?

I created a custom "node add" & "node edit" forms, everything work well except with ajax fields (I noticed the issue with file fields and image fields). When I try to upload files on my custom ...
0
votes
1answer
10 views

Server Error 500 - Edit Tab of Managing Custom Fields of Custom Content Types

Alright, I've got a very irritating error with my site. Whenever I try and Edit a file or image field I get what appears to be a half-loaded page (see image below) I have check an error log and have ...
0
votes
1answer
19 views

Two Errors Lumped Into One - File Field Deleted - Cannot Be Found/Deleted/Recreated

I'm in the process of adding more content types/cleaning up old ones on my site. Except I keep coming across an error that has another part which seems to differ from other questions posted to this ...
1
vote
1answer
24 views

How to use remote file source module

I would like to use the Remote File Source Module. But I could not find any documentation related to it. Has anyone succeeded using it? How to provide ftp hyper link inside a blog, article, forum. ...
0
votes
1answer
30 views

Programmatically populate file field using Entity API

I need to programmatically generate nodes using some data that I extract from different import files. For the node creation I use Entity API. I've written a simple function to which I pass the node ...
0
votes
1answer
19 views

Cannot get value of form field of type 'file' in drupal form

I have a form field such as , $form['fileTransfer_settings']['file_path'] = array( '#type' => 'file', '#title' => t('Choose file'), '#size' => 22, '#description' =>...
0
votes
0answers
15 views

What could be causing a file filed attachment not to upload?

I have a content type which has a file field for PDF attachments. Sometimes a file will refuse to upload and the throbber just spins and spins. The only way out is to reload the page or navigate away....
1
vote
2answers
71 views

Problem uploading files and images containing spaces in the filename

In Drupal 8 I have fields of type File and Image, inside Content types and forms. These fields stores files inside the "public" folder. When I upload files with a name containing spaces, for example ...
1
vote
2answers
35 views

Views: add (link to file field) to image field

In D7, I have an event content type containing an image field ("Featured image") and a file field ("Document"). I have a view of events containing documents, and would like to wrap a link around the ...
2
votes
1answer
74 views

Conditional fields for the field type 'managed_file' is not working in Drupal 8

I have two radio buttons Enter The Text Upload a Text File If user select the 1st option, a field of type 'textfield' will appear & if they select the 2nd option, a field of type '...
0
votes
1answer
52 views

How do I migrate the file attachments field from Drupal 6 content type?

My Drupal 6 site has different content types, and there is a File Attachments field added to the content types. While migrating to Drupal 8.1, this field is not getting migrated, but the attached file ...
1
vote
2answers
31 views

Drupal File Validations When File Field Not Required

I have a (Drupal 7) custom form where the image or file field is not required, however when the form is submitted and the image or file field is NULL I get the below errors Notice: Undefined index:...
0
votes
0answers
13 views

Webform file upload uses wrong file type

I have a webform that provides a file field, and I want to enable users to upload files there (additional to other information). I have a custom file entity (nebst the built-in document) named News, ...
0
votes
0answers
26 views

Drupal mysteriously deleting styled image derivatives immediately after they are created causing 404s

I have here a strange problem with a Drush module I have created. The title says it all: when the code is run, the original image is placed fine and as long as it is sort of medium-sized it shows up ...
0
votes
1answer
41 views

Multiple filenames in Entity form notification mail

I have an Entity form with a file upload and need to include multiple filenames in the mail that is sent to the site admin upon form submission. If I only allow one file to be uploaded through the ...
0
votes
0answers
19 views

Send publicly uploaded files through Webforms to external FTP?

I'm currently using Webforms to allow visitors to upload files. Now I need the uploaded files to be sent to an external FTP (different than the one that Drupal is installed on that is). I've tried ...
0
votes
0answers
50 views

Saving file not working with rules module

I want to execute some custom code when going from state A and B. I'm using the rules module and workflow module and trigger when changing state. This works but the custom code that I want to run ...
0
votes
0answers
10 views

How can I move CCK filefield content to another one?

I'm converting multiple contents types in another only one. So I use the convert module to do so.But some CCK filefield are not the same has the one used in the new content (which use existing fields ...
1
vote
1answer
40 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
16 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
59 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: mp3s/some_artist/album_name/...
0
votes
0answers
106 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 = ...
1
vote
2answers
73 views

Warning: Invalid argument supplied for foreach() in taxonomy_field_formatter_view()

My Drupal installation has some warnings, I tried several patches, but none of them works for me. These are the warning messages: Warning: Invalid argument supplied for foreach() in ...
0
votes
2answers
53 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
62 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
48 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
26 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
18 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
271 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
11 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
389 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
1answer
37 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
522 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
183 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
166 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
14 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
123 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
129 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
14 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
251 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
18 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
75 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
31 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 this:...
1
vote
1answer
42 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
119 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
40 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
11 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 ...