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

learn more… | top users | synonyms

-2
votes
0answers
13 views

Drupal downloads private files with random file names. How do I get it to name the files correctly?

First of all please refer to the following article on here: Private files missing filename The problem I have got is that I'm not sharp with PHP. Very recently took over maintenance of a Drupal based ...
0
votes
0answers
13 views

File Sharing - private and public

We have a museum website that is used solely for internal purposes (Roles = Employees, Senior Staff, Director, and board members). All accounts are created by admin and are for museum related ...
0
votes
1answer
28 views

How to scrape content from a Drupal Site?

I am a victim of Drupageddon on one of my sites and even though I patched Drupal core (maybe not fast enough) recently my Drupal database got completely messed up and my webhoster confirmed there were ...
0
votes
0answers
15 views

How to change file field destination

i'm using Drupal 7 and have an article content type with a file field for article pdfs (field_pdf_file). Currently this field points to the Drupal 7 private file system so uses the stream private:// . ...
0
votes
1answer
19 views

Commerce File won't let anyone download files

I've got a website running Drupal 7.32 with Drupal Commerce. I want to let users download files so I've got the Commerce Licence and Commerce File modules installed and I've them working for a while, ...
0
votes
1answer
15 views

link to node field on another content type

I have a field that uploads a pdf, I want to get the uri in another node and content type to create a link. Is this possible to do without knowing the id of the node (so not using node_load) but by ...
-1
votes
0answers
28 views

how best store audio files using drupal 8 and export them using web service?

I would need advice on conception of a audio files database on drupal 8 available on a mobile client using web services. So far I have successfully created a RESTFUL export view containing json ...
0
votes
1answer
30 views

Error message when deleting folders/files on Maintenance mode

I turn the site in maintenance mode for update Drupal Core from 7.30 to 7.32. I follow the step on Drupal docmentation to delete all folders and files, beside "site" folder(on step 5). However, I got ...
1
vote
3answers
1k views

My Drupal was hacked: Remote Code Execution – base64_decode() with ‘PCT4BA6ODSE_’

today I woke up surprised that my website was hacked. I found scripts like this in several files of my Drupal instalation ...
0
votes
0answers
26 views

Amazon S3 for Stage / Production only?

Is it possible to use the Amazon S3 module for stage / production only? The site I'm building, is using features. So when I export my fields for the content types, I either have the option to select ...
0
votes
1answer
38 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
0answers
23 views

Replace the file with same name

With reference to post for the validation function in managed_file field, but i am facing an issue with file_desitination() $file->destination = ...
0
votes
1answer
60 views

“File (Field) Paths” and “Media” modules: files not saved in the intended folder

I'm trying to use both the "Media" module (1.4) (to manage uploaded files) and the "File (Field) Paths" (to keep the uploaded files organized in various subfolders). Basically, I have a content type ...
0
votes
0answers
44 views

Issue with “File Entity (fieldable files)” module. File Display not working for some users

I defined a content type called "concurso" which includes an "Image" field in it. The scheme for that field is Public Files. In fact, all files in my site are public. In ...
0
votes
0answers
19 views

Display if there is more content available if you are logged in than if you are not

I am currently building a Drupal Website where I have to type of documents that can be presented as complements to an article. The first type is public access document and the second one is of ...
1
vote
2answers
36 views

Where can I save a CSV file that I construct dynamically to make it available for download?

I dynamically construct a CSV file following that method: $fp = fopen('export.csv', 'w'); foreach ($export as $fields) { fputcsv($fp, $fields); } fclose($fp); A file 'export.csv' appears in the ...
0
votes
1answer
23 views

Problems with file type field of node

I have created some custom page on frontend for particular type of node modyfications. Here's my page callback: function vintranet_talk_edit_entry_page_callback($sNid) { ...
0
votes
0answers
27 views

Moving files of existing site to s3 or CDN

I am having a website that's in production for last 1 year and with some few thousand content. Now to facilitate scaling I am considering moving the sites files to either s3 or any CDN using s3 module ...
0
votes
0answers
31 views

Replace file button missing

I am missing a button to press when replacing a file. Go to admin/content/file and edit a file. For example: i am on file 778 at /file/778/edit If you look at the Replace File field, there is ...
0
votes
1answer
27 views

Module to upload a folder and view it as in google drive

I want to upload a folder, that contains two sub-folders and these sub-folders contains couple of files. I'm trying to upload the folder in such a way that it appears similar to the tree structure ...
0
votes
1answer
24 views

Removing file from form breaks site

I created a module that hooks into the admin menu and allows you to upload a specific file for the site to use. It allows you to upload a file, and change a file, but as soon as you remove a file and ...
1
vote
1answer
26 views

Write a File Locally

I am trying to write files and read from them. The following code works great on my local Kalabox server, but when I push to Pantheon, the files don't get written. Could it be because all files are ...
0
votes
2answers
39 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
0answers
29 views

Where do I add this property to made plupload start the upload automatically

I found a great solution to upload images automatically, but I need help understanding where the code goes and how I figure out what the "my_element" value should be. This is a follow-up question to ...
0
votes
1answer
48 views

Migrating multi-value FileField with description and display

I need to migrate nodes with attached files from Drupal 5 to Drupal 7. Basically I did it with media widget for file field what was easy but client wanted to have the functionality which allows him ...
0
votes
0answers
7 views

using 'managed_file' with file_usage_add [duplicate]

How should I use file_usage_add in my module, if this module doesnt create any entities? I read documentation: https://api.drupal.org/api/drupal/includes!file.inc/function/file_usage_add/7 and ...
0
votes
1answer
201 views

The uploaded file likely exceeded the maximum file size (32 MB) that this server supports on remove image

In my taxonomy terms,when I try to edit a term I got this error : An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (32 MB) that this server supports. ...
1
vote
0answers
60 views

How to get a remote file and set it as a value for a file field using entity metadata wrappers?

I am trying to get a remote pdf file from a web service and save it as a field's value using entity_metadata_wrapper, but somehow I couldn't get it working. I can successfully retrieve the file ...
0
votes
2answers
27 views

How to force migrations to not copy files

I have a migration with an image field and the files already exist on the server where I want them. There is a file, some_file.jpg that already exists at sites/default/files/some_file.jpg but when I ...
0
votes
1answer
21 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 ( ...
1
vote
0answers
16 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
35 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
45 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
10 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
30 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
40 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
21 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 ...
2
votes
1answer
43 views

Delete variables and file folder on module unistall [closed]

Is there any drupal API function for deleting variables and file folder on module uninstall or on module disabling?
0
votes
2answers
296 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
45 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
56 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
61 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
33 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
19 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
13 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
30 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
89 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
13 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
35 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 ...
1
vote
2answers
60 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 ...