Skip to main content

Questions tagged [files]

Use it to generally reference to those files used on websites which could be video, images, pdfs, etc.

743 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
33 views

Youtube Uploader call on node save

I've just setup Youtube Uploader module version 7.1-2.1. Everything works fine when I add video to the node manually. What I want is to put video into youtube_uploader field from my PHP code. For ...
Dmitry Orlov's user avatar
1 vote
1 answer
22 views

How one can display the file path once it is successfully uploaded

How one can display the file path in node/add page, once it is successfully uploaded, before saving the node.
Yama's user avatar
  • 629
1 vote
0 answers
31 views

Download genarated file from private folder

Ich wrote my module, that generates and save my file under private://myprivatfolder/myfile.txt Now, I don't know how to download or make direct-access-url for this file after generation. $url = url($...
user52660's user avatar
1 vote
0 answers
584 views

Plupload integration in custom form

I have been trying to use plupload field in a custom form which I am doing by using the following code: $form['picture_upload'] = array( '#type' => 'plupload', '#title' => t(''), '...
TheCoderGuy's user avatar
1 vote
0 answers
183 views

Views PDF not generating custom style pdf output

I am unable to print my css styled content to render pdf output,I am using views pdf module for a project,where my views are rendering my style but when pdf is generating no styled output coming. Any ...
Tamaghna Banerjee's user avatar
1 vote
1 answer
47 views

User Files Download w/o Upload

I am trying to figure out a clean way to do this in drupal 7 but can't find a clean way. Problem: A user needs to be able to download files without the need to upload any files. Files are placed in ...
user54232's user avatar
1 vote
1 answer
506 views

How can I programmatically remove the file from a managed_file form element?

I have a form where users upload images. When an image is submitted it is validated against various criteria. If the validation fails the user is returned to the form but the failed file is still ...
coranda's user avatar
  • 21
1 vote
1 answer
726 views

Delete unmanaged file after download?

In a custom module I create a file and then use drupal_goto to download it. How can I delete the file after it is downloaded? Placing a file_unmanaged_delete after the drupal_goto doesn't get executed,...
digitgopher's user avatar
  • 1,592
1 vote
1 answer
129 views

How to display a video file without using the video hosting websides?

I need to display video file without using youtube, vimeo etc. I am using the bootstrap theme. I've tried to using some modules with no luck: Module: MediaFront, Field type: File, Display mode: ...
stan's user avatar
  • 11
1 vote
0 answers
147 views

Duplicate node in Views with File Usage

I have a content type that has multiple file fields depending to allow the content editor to upload different file types. Only one of the file fields is ever used per content type. I have a view ...
popnbrown's user avatar
1 vote
1 answer
132 views

Show all values of a multi File field sorted by upload time

I have a content type with a File field that allows multiple values. What's the best way to display these files as a list ordered by upload time rather than delta but still using the file descriptions?...
Robert's user avatar
  • 131
1 vote
0 answers
27 views

Template file in admin theme not looked for in admin theme

As documented here, I've created a custom filefield source that gets images from Apache Solr, and I'm using this in conjunction with the Insert module. I wanted to add some additional markup for ...
wonder95's user avatar
  • 1,201
1 vote
0 answers
55 views

Extract compressed files

How to extract zip files after the upload successfully, I'm using File Field Paths to upload files.
mahmoud ameara's user avatar
1 vote
0 answers
73 views

Webform uploads / Media

I've run into the following: User uploads are among the uploads from the admin / editors. Is there a possibility to show uploaded files from the webform module in a different module than the Media ...
Jacob Francke's user avatar
1 vote
0 answers
59 views

How to push file to browser after theme redirect

function epa_basket_form_submit($form, &$form_state) { $basket = _epa_basket_get(); /* Direct download */ if ($form_state['values']['radios'] == "0") { $wsdl = ...
boom123's user avatar
  • 21
1 vote
0 answers
162 views

How to override filenames via file description field in uploaded files?

I'm using File (Field) Paths to change filenames of uploaded files. There's a nice option to enable file description. I want the files to be renamed according to that file description (I tried to find ...
Castor's user avatar
  • 129
1 vote
0 answers
60 views

Only one video is visible from a multiple-value field

I have a field named hudl_videos for embedding videos and I have added multiple values to the field. I use the Embed and the Video modules where I can embed Youtube and Vimeo videos, but videos from ...
fitnessCraze's user avatar
1 vote
1 answer
24 views

Restricting Content by License / Code

I'm working on migrating a custom coded site over to Drupal and am having trouble with one piece of functionality. Currently, if a user wants to download a certain file, they have to enter a serial ...
Cesar's user avatar
  • 111
1 vote
1 answer
1k 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 ...
ctrnz's user avatar
  • 33
1 vote
0 answers
110 views

Directory permissions and appearance issues after moving site

I recently moved my drupal site and am having issues with it the most pressing issue is one of permissions for temporary directory. there is also some weird css stuff going on but ill figure them ut ...
Lonergan6275's user avatar
1 vote
1 answer
404 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 ...
Dvex's user avatar
  • 343
1 vote
0 answers
57 views

How do I add files to the solr index in Drupal 6?

I'm using Drupal 6, Solr 4.9.0 and Apache Solr module v 6.x-3.x. I'm trying to use Solr to index files attached to nodes, but it's not working. I'm using the Solr Attachments module but I know it's ...
user10553's user avatar
1 vote
0 answers
750 views

How can I get PDFpreview to work?

My site is on a wamp server. I am trying to get my PDFs to show up as a thumbnail on my drupal 7 site. I have installed Imagemagick on my computer, i couldn't ever get it installed on my wamp (there ...
Eluchel's user avatar
  • 387
1 vote
3 answers
102 views

Migrate files attached to comments from D6 to D7

While migrating from Drupal 6 to Drupal 7 (into a new blank site), I noticed that files attached to comments are not handled by the Migrate module. The D6 site uses a contributed module „Comment ...
Anders's user avatar
  • 145
1 vote
0 answers
25 views

Private fields not able to access in draft mode

Private fields attached to old revisions are not accessible to download when the new revision(Latest revision) of the node is in draft. How to make it to download the files.
user3686276's user avatar
1 vote
0 answers
188 views

Trigger Rule with Filefield 'when field has changed'

This problem has been giving me a headache for four days now, so I thought it'd be best to see if somebody knows of a better answer than me :) I've got a set of different rules that check if various ...
Mark's user avatar
  • 11
1 vote
1 answer
36 views

How to inspected the file system to investigate if the image was uploaded

After I upload an image, I see blank image. How can I inspect the file system to investigate if the image was uploaded or not? Thanks, M
MCD's user avatar
  • 31
1 vote
0 answers
258 views

How to programmatically update a file field

I have a file field (audio recordings) on a node. So all these files are located in sites/default/files/recordings. I have set in the settings that those files are now stored in subfolders by taxonomy....
user568021's user avatar
1 vote
0 answers
214 views

PDFCommerce Billy

hi sorry for my english i'm italian i use Commerce Billy pdf invoice module but the pdf generate is more different to default style How do I change the setting for the default style? or to ...
Massimiliano's user avatar
1 vote
0 answers
30 views

What error has the value of one in regards to the file_save_upload in Drupal 6

I called file_save_upload and then form_get_errors. form_get_errors returned 1. What is this error? I tried googling for this error, but I guess the words I used to search for it weren't good enough....
Will's user avatar
  • 33
1 vote
0 answers
35 views

Uploaded files are not showing correctly in some users

Uploaded files are not showing correctly in drupal 7.12. However this issue occurs only with some old users and newly created users are working fine. what might be the cause of the issue. Can anybody ...
rakesmh14's user avatar
1 vote
0 answers
353 views

Using Feeds Importer to Import YouTube video uploads (API 3.0)

Here is my scenario: I am using Feeds module, Google Auth module, and Media module. I am trying to import a list of recently uploaded videos to a specific channel (maintained by me) using the above. ...
Rosie's user avatar
  • 21
1 vote
0 answers
109 views

Services 3 - how to create a file in the private files directory

Is there a way to save files to the file endpoint but to the private folder rather than the public.
Dylan Spencer James's user avatar
1 vote
1 answer
2k 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 ...
therobyouknow's user avatar
1 vote
0 answers
374 views

Change form_state values with custom ajax call but without #ajax commands (fapi)?

(Sorry for my bad English) I’m building multi steps form with help of FAPI in front-end section. In the final step of my form I want use some third party js libraries for few task (like uploading ...
reza mirjahanian's user avatar
1 vote
0 answers
229 views

A way to override the <video> tag inside WYSIWYG field

Facts: Media 7.x-2.0-alpha4+30-dev, File Entity 7.x-2.0-beta1 Media WYSIWYG and Media WYSIWYG View Mode enabled The source: <p><video class="media-element file-default" controls="controls"...
drupal_stuff_alter's user avatar
1 vote
0 answers
285 views

Attach multiple files to a node on node_insert and move them to private directory

I used the code below to save files and attach them to the node on node_insert, but the problem only the last file is saved and attached to the node : function MYMODULE_node_insert($node){ // ...
Boussetta moez's user avatar
1 vote
1 answer
373 views

Images Not Uploading to sites/default/files/*

I transferred my website to a live hosting from my local computer. Now the image files don't seem to upload to the correct folders. The images that I added while the site was local appear fine, but if ...
Gamegoofs2's user avatar
1 vote
0 answers
396 views

Different templates for generating different PDF files related to a single node

Im using PDF using mPDF to generate PDF files related to a node. Inside the code of the module there is a preprocess function that add to theme_hook_suggestions a new pdf template that can be used ...
Boussetta moez's user avatar
1 vote
0 answers
58 views

YouTube media filed without remove media button

I'm using Drupal 7. The Remove media button on youTube media entry (field) is missing. This is for a field with name: Videos, field type: Multimedia asset (deprecated), widget: Media file selector. ...
Elod's user avatar
  • 125
1 vote
2 answers
481 views

How do I use print to generate a PDF of all entities referencing a specific node?

I'm trying to use the Print module to generate pdf's and epubs of the stories on my site. However, I need to get Print to generate these files from the story page and then generate the pdf with ALL ...
CW Smith's user avatar
  • 385
1 vote
2 answers
99 views

Cannot download generated files

I have a site (Linux/Drupal/Apache) that generate a .xlsx file from custom code and its saved to files, but after that I cannot download it from drupal, it give permission denied. Forbidden You don'...
atlus's user avatar
  • 11
1 vote
2 answers
286 views

how to setup rule events for before/after video is played?

How can I set up a rule events for actions to occur before and after videos are played in a node? Thank you for any tips/ help you can give!
HRF's user avatar
  • 41
1 vote
1 answer
1k 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 ...
Phi Van Ngoc's user avatar
1 vote
0 answers
194 views

Drupal 7 cannot use ckeditor with IMCE to browser file on IE 11

I try to use the ckeditor with IMCE to upload the image on IE 11, however, it show permission denied when I browser file, I have tested on chrome and firefox, it all work, does anyone know why?? ...
home1985's user avatar
1 vote
0 answers
179 views

D7 sites/default/files/.htaccess caused unloaded css&pictures&etc...

After an error [SA-CORE-2013-003 - Drupal core - Multiple vulnerabilities] notice showed up in my site's status report page, I rewrote the content according to this https://www.drupal.org/SA-CORE-...
takao's user avatar
  • 11
1 vote
0 answers
386 views

Upload and convert Large videos using video module

I am trying to develop Drupal 7 website which will allow users to upload large video files. As the files are too big (min 1.5GB), i am converting them to .flv format by using video (7.x-2.11) module ...
Aniket Barpetia's user avatar
1 vote
1 answer
96 views

How can I set up a Drupal rules action to play a specific sound?

I would like set a sound alert as a Drupal rules action- for Drupal to play a specific sound file eg in audiofield. How can I do that?
HRF's user avatar
  • 41
1 vote
0 answers
263 views

how to show image style with private file system? 403 access denied error occurs

I'm working on a webapp and changed my public file system in to a private file system. Everything works fine, except my thumbnails created by image styles throwing a 403 Access denied error. Does ...
shah smith's user avatar
1 vote
0 answers
71 views

Views PDF module does not support Global Views result counter field drupal 7

Views PDF module doesn't support in Global Views Result Counter field in drupal 7 in PDF Table format. If anyone knows.... help me to solve this issue
Pravin's user avatar
  • 11

1
3 4
5
6 7
15