FileField is a Drupal 6 module that offers improved file upload features.
0
votes
0answers
6 views
file field populate files in custom form [duplicate]
I'm trying to make custom form and add file field to it. Besides, I want to add uploaded files to this form. Here is the code.
function node_stage_stage_report_form($form,&$form_state,$nid)
{
...
2
votes
1answer
28 views
Why isn't my managed file getting saved?
Please save me from ripping out the rest of my hair...
I've got a "managed_file" field in a form; nothing special. When the form is submitted, I run something like the following code to, presumably, ...
1
vote
1answer
26 views
D7 : Upload to a folder outside of “files” folder?
Specifically outside of the Drupal installation folder...
I have a folder in my WWW folder that I'd like place files into through Drupal. However, it looks like, by default Drupal prefers to only ...
1
vote
0answers
28 views
Filefield source Attach server-side files uploaded via FTP not working
I am using FileField Sources to attach server-side files uploaded via FTP in image field. But i can't get the images in the imce browser. Also try the IMCE for FileField. But can't produce the right ...
0
votes
1answer
51 views
Filefield with IMCE browse server
I am having rather strange issue. I have created custom CCK with image upload field. To browse a server folders I've installed a CCK Filefield and configured it to work with IMCE , however I can't see ...
0
votes
0answers
10 views
File does not upload properly when users upload a file
i have created a content type with a file field, when the user upload a file, loading status appears ,the problem is dose not stop loading. the file is very small 1 MB and my internet speed is fast ...
0
votes
1answer
40 views
How to make uploaded file permanent to node without node submit
My module automatically save new empty node when user create new node and redirect to edit this node. Now, is it possible to make uploaded file on _node_edit form without submitting form?
edit:
When ...
0
votes
1answer
99 views
Adding a file to a node programatically
I am working on a module that is transferring files from my old site (hosted on the same server) to a new drupal based site. The files will be associated with a single content type (the content type ...
0
votes
0answers
24 views
Changing files privacy settings
One of the content types I have defined has a file-field set up with a destination to public folder.
The field is supposed to have private settings, but as some data has been saved on the server I ...
5
votes
1answer
345 views
How to set value of file field with entity_metadata_wrapper
How do you set the value of a file field when using the entity_metadata_wrapper?
I've tried doing this in code:
$file = new stdClass();
$file->uid = 1;
$file->uri = $file_path;
...
0
votes
0answers
20 views
broken file/image field in database
I am unable to upload images to image field traditionally or through IMCE. I beleive the issue was caused by me deleting some records in dr_file_managed, dr_file_usage, and ...
0
votes
0answers
174 views
Migrate Field CCK upgrading Drupal 6 to 7, reasons for subsequent Broken/missing handler in Views?
In the process of upgrading Drupal 6.x to 7.x I'm facing a problem that makes all my views show nothing relevant. (I believe the problem is here but I'm not sure, I don't know. That's why I'm asking):
...
0
votes
0answers
52 views
How do I add and existing amazon s3 file through Drupal services?
I'm uploading files to amazon S3 (not using Drupal). I would like to take the filepath, and create a new file via Drupal services. I'm using the amazons3 module. Is there a way to do this with the ...
3
votes
1answer
77 views
Using EntityFieldQuery's FieldCondition on file fields (or complex fields)
I see plenty of examples of using FieldCondition on basic fields but in my case I would like to query if the file field holds a specific file name.
The structure in the entity object (with language ...
0
votes
1answer
46 views
How can I change a file before save in programmatically?
I want to upload an audio file on Drupal, trim it, and save it in sites/default/files/audio/. I know how I trim the audio file; I only want to set my audio-trim-library in Drupal when the file is ...
0
votes
1answer
99 views
Display custom field content in node.tpl
i've a custom filefield in a custom content type and i use to display it in a node.tpl .But here my filefield has no limit number and under D6 i use this code :
...
0
votes
0answers
35 views
Setting file status to permanent fails
I am trying to set the status of an uploaded file to 1 but looking in the file_managed table it stays 0. The file does get uploaded properly but gets removed after a while.
My form field:
...
1
vote
1answer
116 views
Exposed filter for file field
I have a content type with several file fields. I have a view listing nodes of that content type. Now I want to add an exposed filters for each file field to let users filter only those nodes which ...
3
votes
1answer
139 views
how to delete the files uploaded in the file field?
if i remove the files that were uploaded in a File field,and then upload a same name file, the file removed just now is still present in the server and the new uploaded file gets renamed to a name ...
1
vote
0answers
41 views
Drupal 7 Node Media
I want to add media to my node. I have installed Media 2.x, Media Multiselect and Plupload modules and I can upload multiple items to but unfortunatley I cannot insert multiple items to my File field. ...
0
votes
0answers
41 views
Form with lot of inconsistency in fields
I have form with lots of fields, and many of them allow multiple values (like adding many images, field collections). When adding more field collections it is normally realized with ajax - form is ...
0
votes
1answer
219 views
How to attach and add files to nodes using Drupal restws module?
I need to add files to multiple value file field using drupal rest api (restws module).
return format of restws is something like this :
"field_files": [
{
"file": {
"uri": ...
0
votes
0answers
86 views
Why file field value is always empty on custom form?
I have created module with custom form.
Form is "two step", so first user see radio buttons. If he choose file upload, file field is loaded via Ajax:
function rpke_doc_flow_gate_form($form, ...
0
votes
2answers
458 views
How to remove “Show row weights” option on File Upload field?
I have created a file field with multiple uploads allowed. Is there any way(except CSS) I can remove "Show row weights" link from file upload field? Or is there any way to remove weight drop down ...
0
votes
1answer
200 views
How to programmatically set a file field to allow multiple uploads/values?
I have created a file field with field_create_field() and added an instance of it to my custom node type with field_create_instance() in my module's hook_install()function. But how do I set it to ...
0
votes
0answers
40 views
Field or View for selecting images attached to another selected node
I have a content type of 'property' and have multiple file fields for attaching images.
I have a content type of 'flyer' where I have an entity reference field to select a property. I have this ...
0
votes
1answer
78 views
Drupal private file system and possible sharing options
I have issues setting file system (private) for users as described here. I wonder what they ment by
"This setting is used as the preferred download method. The use of public files is more efficient, ...
0
votes
1answer
293 views
Uploaded Private files access problems
On my Drupal 7 install, I have content type in which user can upload files to the server, via file upload field. I was sure everything was fine, I forgot about the system (was sure it was working, ...
3
votes
1answer
169 views
When programmatically adding file field, how to set allowed file extensions?
I'm trying to add a custom node type in hook_install() for my custom module. I've been able to add the fields I want but can't seem to find a way to set the allowed file extensions for file fields. ...
2
votes
0answers
45 views
Sync Alt and Title values from CCK imagefields with media module file fields
I have a situation where I really need to access the alt and title values of an image on a node. I can retrieve these values in a node View, but in a file View these values are not accessible as they ...
0
votes
2answers
197 views
Convert Uploaded Files To .pdf
I'm reviewing a spec. that calls for all files uploaded via a file field to be automatically converted to PDF format. I have two questions:
Is this wise? Files would be uploaded by anonymous ...
0
votes
1answer
423 views
Read contents of uploaded file before saving
I am using hook_node_presave() to build a module (which I am new to) in Drupal 7. I am able to reference fields via $node->field_foo[$node->language][0]['value'] (which I have seen mentioned ...
2
votes
1answer
36 views
How to store field data in a file instead of the db?
So far, I found two decent options for storing field in a file:
using node hooks to store data in a filefield, and process it on node view
theoretically, the best would be to use file storage as a ...
2
votes
0answers
84 views
D7 Image Field Paths - Using a custom Path for Each Image Style
I am looking to have an image get dynamic name for each style that is generated by the system.
Currently I am using tokens to generate an md5 hash for the file name, but for each style (eg ...
0
votes
0answers
42 views
All File Descriptions from Multiple Value Field Showing Up for Each File in Views
I hit a little snag setting up this View for uploaded documents. I use a multi-uploader field to upload two files to an Entity. I've added descriptions for each file. When I try and display this in ...
1
vote
0answers
331 views
ajax file upload in drupal 7 ctools modal is not working?
I am trying to use ctools modal form to edit node form. This form is containing a file field. The Form is rendering properly. When I try to upload a file on clicking upload button, file field has been ...
2
votes
2answers
386 views
Programmatically deleting a filefield content and the associated file?
If I do the usual
unset($node->myfilefield["und"][0]);
Would that take care of the actual deletion of the file as well on node_save?
0
votes
1answer
192 views
How to set MINIMUM number of required fields?
I need to set the minimum number of required values for several file fields in Drupal 7. I can only find options to make the field required or set a maximum number of allowed values. Is there any way ...
0
votes
1answer
236 views
How to register Field Handler class with Migrate module
I'm trying to use the migrate module to import some video fields. I'm assuming that I'll need to write an extension to the MigrateFileFieldHandler. I set up a shell class based on what I saw in the ...
1
vote
1answer
107 views
Strip overlay context from File field
I have a basic File field set up to allow my users to attach files to nodes.
However, the File field widget in the node edit form displays files as a link to the file, and the URL contains ...
1
vote
2answers
94 views
How to programatically add attachments to a user (securely)
To any Drupal 7 gurus out there... I have hundreds of PDFs that need to be uploaded to users as their own private attachment. I've created the PDFs in the folder:-
...
1
vote
0answers
54 views
Add taxonomy terms to files
Is it possible to add a taxonomy term to a file that it is uploaded to the site? If not I imagine that I would need to create a content type to encapsulate the file and tag that.
1
vote
1answer
40 views
How to remove files using File widget
After clicking on the "Remove" button, the entry disappears, but the file is still on the server.
1
vote
1answer
58 views
Hide Alt and Title for image field
How to hide Alt and Title fields for anonymus users when they upload images? I use tokens for these field that's why I need to hide them.
1
vote
1answer
112 views
How to retrieve a file via REST from the services module?
Which URL format should I use when retrieving a file via the services module?
I figured that it would be formatted like this:
http://<domain>/<endpoint>/file/fid
I've tried several file ...
0
votes
1answer
210 views
File upload error using AmazonS3
I'm trying to use the AmazonS3 service to host videos from my Drupal site. I'm using:
Drupal 7.16
AmazonS3 7.x-1.0-beta7
AWS SDK for PHP 7.x-5.4
Libraries 7.x-2.0
Video 7.x-2.8+3-dev
I've also ...
0
votes
2answers
115 views
How to change “Description” in File field to drop down instead of text field?
What is the best way to modify the File field so the "Description" field is a select box instead of a text field. I.e. I want to go from:
To this:
I tried a quick experiment, editing the File ...
4
votes
1answer
311 views
How can I restrict that only sender and receiver can download the attached file with the private message?
I am using drupal 7. I created a new file field in private messages for attachments and I want that only sender and receiver should be able to download the file attachment.
I apologize if this ...
2
votes
2answers
336 views
Organize files attached to a node into folders
We need to organize files attached to a page into folders (with Drupal 7). They don't necessarily have to be physical folders, virtual folders are fine.
Do you know a module like this, or do we have ...
2
votes
1answer
365 views
Move File Field storage from public:// to another stream wrapper (like s3://)
I've been looking around for this a bit, and it seems like it would be relatively easy in Drupal 7, since D7 supports stream wrappers, and Fields are part of core... but I can't find any ...