Static files used on websites which could be video, images, pdfs etc.

learn more… | top users | synonyms

0
votes
1answer
18 views

How do I get a link to an image CCK in Drupal 7 in the node view?

If I do this: print_r($node); I get this: [field_main_photo] => Array ( [und] => Array ( [0] => Array ( ...
0
votes
0answers
15 views

TCPDF Generating corrupted pdf file [closed]

I'm trying to create a pdf file which contains some table of data and a graph image. But if I generate pdf with only table of data there is no problem with the file. But when I add image, the ...
1
vote
0answers
9 views

Can Colorbox browse admin/content/media from Drupal Media rather than file uploads?

Is it possible to configure Colorbox for Drupal D7 to use content already stored by the Media module (in admin/content/media) rather than use a file upload? The alternative is either: Upload ...
-1
votes
1answer
22 views

how to setup cron to run everytime when new file is generated in drupal files folder

I created webform and saving submitted data into text file in drupal files folder. A remote script performs calculations and outputs new text file to the same folder . I want cron to run everytime ...
0
votes
1answer
26 views

Programmtically add image to custom image field User

I can't figure out how to add image to a custom image field on a sepcific user. $f = file_save_data($user['thumbnailphoto'][0], 'private://profile/'. $data['name'] .'.jpg', FILE_EXISTS_REPLACE); ...
0
votes
0answers
8 views

commerce_file field not required

I have a commerce product type with commerce_file enabled but shouldn't be mandatory. But when I uncheck 'Required Field' I get an error saying "An illegal choice has been detected. Please contact the ...
1
vote
0answers
16 views

Injecting field data in a custom entity

I have created a custom fieldable entity. Now I want to inject the field data into the entity and render the complete entity with the fields. The following code is working for text fields and ...
1
vote
0answers
17 views

Programmatically select image style for use with custom file entity view mode

I have created an empty custom view mode for file entities with hook_entity_info_alter(). I would like to programmatically select settings for it, so that they can be deployed without a user having ...
0
votes
0answers
15 views

File upload only allowing one upload at a time

I'm having a problem with the File widget. I have created a content type with a file field that allows unlimited values. When I upload a file I am expecting to be able to immediately upload another ...
1
vote
1answer
36 views

Delete variables and file folder on module unistall

Is there any drupal API function for deleting variables and file folder on module uninstall or on module disabling?
0
votes
2answers
56 views

How to add “Download file” link in Drupal 7 files attachment when chosen table formatter

By default Drupal 7 output attached files: file name and size of attachment I heed to add an additional column with Download link to every attached file. In my template.php i have added: // Override ...
0
votes
0answers
14 views

How to change the Public File system path for Multi Sites

Drupal 7 install, 1 Database, with two sites under the sites folder and each with its own files folder and the Domain Access module installed. Everything else seems to be working fine, most system ...
0
votes
1answer
25 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 = ...
0
votes
0answers
24 views

Drupal 7 and File Upload error

I get the following error after uploading a file (using FileField in CCK): Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line ...
0
votes
1answer
16 views

Is there an exisiting file sharing module that allows multiple file upload?

I've been doing some module searching and have had little luck. I was wondering if any of you knew of a file sharing module that has: Ability to upload multiple files at once Ability to share files ...
0
votes
0answers
14 views

How to replace an already indexed image through the frontend?

Our websites are ranking quite well in Google Images. At times we need to change our images though. Now it would be less than ideal if we loose the rankings of the old images. Apparently it is ok to ...
0
votes
1answer
10 views

Tag/Label an image in an image field with Taxonomy terms?

Is it possible to tag images as you upload them on to a node in a multiple values image field? Image a node with a set of 3 images: image_1.jpg (tagged with: red) image_2.jpg (tagged with: blue) ...
0
votes
0answers
13 views

Generate iCalendar file - Clean Output

I need to generate a iCalendar file and I have this function in my template.php: function MYTEMPLATE_get_event_file($data){ ob_start(); header('Content-type: text/csv; charset=utf-8'); ...
0
votes
0answers
31 views

Drupal 7, organizing user content within organic groups/subgroups?

Sorry if this doesn't make much sense, i'm new to the Drupal scene. To get right down to it, i've failed at finding any tokens for organic groups heierarchy but in actuality i'd like to do something ...
0
votes
0answers
4 views

Send email containing content entity data to a user after file download trigger

I have used rules a bit and this should be obvious! What am I missing? I use the trigger "After File Downloaded" (which is either from core?? or from the module pubdlcnt ... it exposes only the file ...
0
votes
1answer
29 views

Views: How to list “files” view for their own files?

I'm working on Workbench module on Drupal 7. There is a "File List" tab and showing all images and files from the site. I would like to change this to be showing their uploaded files only. PS: the ...
2
votes
2answers
46 views

Create a form that will allow the user to select files from server

I have a custom module and I'm creating an administrator interface for this module. I need to give a "Select File" button to the moderator that will allow him to browse a specific folder in the server ...
0
votes
0answers
11 views

Drupal 6/Ubercart 2: File downloads not working

I am working on a Drupal 6 website that uses Ubercart to offer file downloads. Each product has an image attached to it. The user can then either download the image as a printed item or a file ...
0
votes
2answers
41 views

Files inside the CSS folder gets automatically deleted when I clear the cache

When i set my uploads path to ../ on file system, my files inside the css folder get deleted when i clear the cache. My aim is to be able to upload my files on the root outside drupal installation ...
0
votes
1answer
39 views

How to display list of files under a particular directory in Drupal?

I've created a custom module to export node data of different content types into Excel (using PHPExcel hooks). That will be stored into particular directory called "Reports" under site/all/files ...
0
votes
0answers
28 views

D2D file migration cannot processes a number of rows?

In my Drupal 6 site I have 147490 files in the database. On my Drupal 7 site I am using D2D migrate module to import them. The number of Items it sees is exactly the same, 147490. However, it will ...
0
votes
3answers
51 views

private files are no longer private

I have created a new content type with an Image field, and I've set it to save in private directory. In my configuration > File System, I have specified /sites/default/files/private as my private ...
2
votes
2answers
54 views

URL alias for File field on a Content Type

I have a File field on one of my content types and I'd like a URL alias for downloading that file regardless of how many times the actual uploaded file has been updated. Any advice? I've been looking ...
0
votes
1answer
27 views

image not saving in private directory

I have made a new content type with an Image field in it. I have chosen private directory to save images so as to secure it. But everytime I am adding a content. Filesize is 0. Checked ...
0
votes
1answer
16 views

Problem when downloading large files using Storage module

I'm using the Storage module to managed uploads on my website. I'm hosted on EC2, some content is sent to S3, and some stays on EC2. Logged in users are able to transfer files to each other. One user ...
-1
votes
1answer
32 views

Where is template_preprocess() located

where is the template_preprocess() function located? It seems that my markaspot theme (mas) call this function but I can not find this funktion in a file. Thanks for your help.
1
vote
1answer
60 views

How to display the file size of attachments on a node in Drupal 7

Is there any way to display the filesize of attachments on a node trough the manage file/ display of the file field or is this achieved programmatically?
2
votes
2answers
100 views

Storing uploaded files according to node ID

When a file/image is uploaded via Drupal, they go into a common directory specified by the administrator. However, is there a way to specify where the files will be uploaded, according to their node ...
0
votes
1answer
41 views

“View private files” permission not effective

I have 3 users, an administrator, an uploader, and a viewer. The uploader has a file field attached to his profile and the destination folder of the uploaded (in my case .pdf) file is set to the ...
2
votes
2answers
74 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
59 views

How to increase the maximum upload size?

I'd like to increase the maximum upload size from 2MB to 5MB on my website (I'm using WAMP). My first attempt to do this was to set Content types > MY CONTENT TYPE > Manage fields > MY IMAGE ...
0
votes
1answer
14 views

How to redirect to another drupal site/alias after file upload

I use the drupal standard to upload files + File Entity. After uploading file eg this is the current URL: https://blabla.com/en/file/abc.pdf. I want to redirect the users to file/add. Matroschker
0
votes
2answers
59 views

file_save_data() cannot save to private://

I'm pretty new to drupal, but I have to write a custom module extension, that saves entityform submission after hitting submit button to a PDF file in the private://pdf/<file_name> uri. At ...
1
vote
1answer
84 views

How can I add image map on drupal?

I am working on a website that is about history and there are some map for this website. I am using map tag of HTML to select a part of image(map), how can I merge that <map> to <img> ...
0
votes
0answers
22 views

What is the best way to move files from a D6 site to D7 using Migrate module?

I have already attempted to use migrate_d2d with the following: $file_arguments = $common_arguments + array( 'machine_name' => 'Files', 'description' => t('Import Drupal 6 files'), ...
0
votes
1answer
28 views

Is it safe to reuse the fid (file id)?

As part of migrating my image gallery module (from mediabox to galleria), I have created this drush script which will fill/add the field values. Below is the logic Get the field ...
1
vote
0answers
31 views

File force compatibilty with download count module

I am using File Force Download 7.x-1.2+0-dev module with Download Count module. If when i set manage display for file field as File Force: Generic file then it is counting download twice but if i set ...
0
votes
0answers
10 views

Write Permission for Group www-data in /sites/default/files/* [duplicate]

I need the read&write permissions allowed for group www-data on files and folders in /sites/default/files/* . By default the owner of the file uploaded by drupal in /filese/folder1/cache is ...
0
votes
1answer
54 views

Why is my file upload always NULL in $form_state?

I've build a form where the user can upload an image as avatar for his profile. But I have an issue as the selected image is not being recognized at all. I used the image example from drupal.org, ...
0
votes
0answers
21 views

Add file on Media: 404 Not Found

On this site, I have Media 7.x-1.5 and Media Gallery 7.x-1.0-beta8 installed. When I go to "Content > Media(tab) > + Add file(link)" it give me the popup 404 Not Found page. It seems like the ...
0
votes
0answers
22 views

convert uploaded file to html

I want to convert the files which user upload in a content type to be converted into html. the uploaded files can be of image or a pdf file. How to achieve it? I am trying to use the pdf formatter ...
0
votes
0answers
42 views

Download all files from node(Drupal 7)

Im created one cck to submit user information, in this cck one field providing to upload the multiple files, it is working fine. After created one view page to display the submitted information in ...
1
vote
1answer
29 views

How to load file, when I know it's filename, but not fid?

I create filenames using some ID and timestamps. I don't want to add additional table to "remember" associations, as filename keeps them pretty well: $filename = get_symbol_by_id($id) . ' ' . ...
0
votes
1answer
43 views

How to display uploaded files as images in Views?

Is it possible to display uploaded image files (not File Entities or Image Fields) as images inside a View? When I create a file View I can either choose to format it using fields, which allows me to ...
0
votes
1answer
20 views

Compile files from URLs in table as zip

I've got a Views table with a column displaying links to files (images, pdf's etc.). I've got a button below the table that exports the entire table. I need another button that should start a .zip ...