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

learn more… | top users | synonyms

0
votes
1answer
9 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
24 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
28 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
36 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
18 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
22 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 ...
-1
votes
2answers
38 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
22 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
72 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
0answers
26 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
17 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
40 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
61 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
15 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
15 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
78 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
182 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
133 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
227 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
33 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
60 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
56 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
47 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
614 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
18 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
163 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
166 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
77 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
99 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
43 views

Is there a way to generate thumbnail for a .doc file in Drupal 6?

I am using file upload module to upload multiple .doc and .pdf files. I just want to display the the uploaded file as thumbnail. Can you suggest any possibilities?
0
votes
0answers
56 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
312 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
314 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
0answers
76 views

cron trying to delete file(s) although it is linked to entity (node's image field)

Cron generating Did not delete temporary file "public://<filename>.jpg" during garbage collection, because it is in use by the following modules: file. although that file is linked to ...
0
votes
1answer
39 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
110 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
34 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
30 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
114 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://' . ...
-1
votes
2answers
277 views

Why file field button disappeared while uploading file? [closed]

I have installed fresh drupal-7 and create file upload field with manage field with 8M Maximum upload size. when i upload a file 25MB then it is showing error message and file field missing. Before ...
0
votes
0answers
101 views

How to add incremental classes to an (Multiupload Filefield Widget) image field

I was hoping some one can help me to add class in to a field that is using the Multiupload (7.x.1.13), Multiupload Filefield Widget (7.x.13) as well as the Colorbox (7.x-2.5) module. I have a view ...
1
vote
0answers
97 views

When Drupal Upload Maxes PHP Limit [closed]

It seems when I try to save a node with FileField populated with a file that exceeds the PHP limit, Drupal just returns to node/add without any error messages. This is bypassing the AJAX upload. ...
0
votes
1answer
344 views

ftp uploaded files are not in the library of Media module

I installed media module in Drupal 7 to browse the uploaded files on the server. I created a new field called media3 and this is its configuration. This is the next page : The problem is when ...
1
vote
0answers
265 views

How to pipe file uploads to subdomain?

I've got a Drupal 7 site on Apache and Varnish, sitting behind the CloudFlare CDN. Everythin on mysite.com goes through cloudflare... I also have a "direct access" subdomain set up at ...
1
vote
1answer
209 views

Grab URL as file upload for Drupal 7?

When creating a content type, you have the option of adding a "file upload" field. How can I extend the functionality of this upload file to allow for the option of simply entering a URL instead of ...
0
votes
1answer
328 views

Retrieve File Url from Upload Form When Form is submitted

I have the following code in my form. function video_subtitles_menu() { //print "video_subtitles_menu 1";exit; $items = array(); $items['video_subtitles_test/upload'] = array( //this creates ...
2
votes
1answer
857 views

File field breaks AJAX form in Drupal 7 form API

This is a really strange one, I've created a custom form using the multi step form method. So there are various AJAX calls to handler functions that return certain sections of the form back to ...
1
vote
0answers
232 views

How do I get the absolute path of the file?

I have created a custom form using (drupal form API), Is it possible to get the absolute file of the file which will be selected in the file upload field ? like if user chooses to upload file from ...
0
votes
1answer
278 views

How to attach/upload a file to node using restws?

I've got a content type with "File" field and "File" widget. I am successfully able to create a node without a file using restws. But, if I want to attach a file to it, it just doesn't allow me to do ...
0
votes
1answer
852 views

Anonymous user's can't views/download files uploaded via file field

I have a node with a File field and i am using public file system. I have uploaded a file via File field and checked the mark "display" in the list of attached files to node, but still, anonymous ...