Questions tagged [files]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
161 views

Use a managed file in a menu_item

Is there a way to create a menu that links to a managed file? I tried many times, but nothing I tried works. Do you have any idea?
Luiz Guilherme's user avatar
1 vote
2 answers
2k views

Virtual Directory for "sites" folder in IIS 7

I am running Drupal 7 on a Windows using IIS 7.5. This is not something I can change and is required by my company. Everything has been running great which is awesome. I would like to setup the ...
Michael E's user avatar
  • 126
0 votes
2 answers
164 views

How can I set specific download URI for file?

Here is my problem. I've got file (eg. some.xml) and multisite Drupal 7 installation. How can I allow to download this xml from my-multi-site.domain/some.xml? Is there any way to do it without writing ...
Stepan Kuzmin's user avatar
1 vote
2 answers
4k views

Theming Print PDF module output when used on non-content page (views)

I have a View that has an enabled PDF version feature provided by the Print module (http://drupal.org/project/print). Its ok, but I'd like to tweak the output table with theming. According to the ...
jabal's user avatar
  • 192
1 vote
2 answers
90 views

Managing javascript / css dependancies?

I know you can add css / js with the drupal_add_css() or drupal_add_js(). Is there a way to define dependancies ? Use Case Example: I need a custom tabs/carousel jquery plugin working. I need ...
chrisjlee's user avatar
  • 6,550
1 vote
1 answer
230 views

Drupal file manager that shows relations to content

Is there module or simple way to show file relations to content with file manager like elfinder or any other? I am using Drupal 7.
ram4nd's user avatar
  • 1
0 votes
1 answer
602 views

Authenticating users and uploading content with Services module

I am trying to learn how to set up a service that will accept http-posts including user login and password, authenticate the user, then allow the user to upload a file that will be used to create a ...
Mike2012's user avatar
  • 1,761
7 votes
2 answers
4k views

Forms API: 'file' or 'managed_file' type with multiple/unlimited values

I've got a form that needs to have either a 'file' or 'managed_file' type field in it for uploading files via the form. Is there an attribute that can be set on the form item render array that will ...
rfoote's user avatar
  • 81
0 votes
1 answer
9k views

click image to play video in iframe

Objective - have a blank screen with only an image on it. (a "play video" button) when the button is clicked a video (from youtube) opens in a section on the screen that is maybe 200X300. Ideally this ...
don winchell's user avatar
0 votes
2 answers
152 views

adding new field to imceimage

I have imceimage.module,v 1.1.2.4. the default of this module is to create a table for the field i want to create as below: desc content_field_slideshow_image; +---------------------------------------...
Alaa's user avatar
  • 397
3 votes
2 answers
1k views

Unwanted / duplicated temporary css files if CSS Optimization is enabled

I'm experiencing the duplicate CSS issue mentioned in drupal.org #830382: Unwanted / duplicated temporary css files if CSS Optimization is enabled. In one of my production sites I have about 335 CSS ...
Sivaji's user avatar
  • 2,478
0 votes
1 answer
651 views

WYSIWYG Image Upload in Basic Page (CKEditor and CKFinder)

I was able to use CKEditor and CKFinder to add in-body image upload capability for article nodes. However, the functionality was not transferred to basic page nodes. What do I miss? Thanks!
user173457's user avatar
0 votes
0 answers
550 views

Handling http-post requests in Drupal

Currently our application has a nice little feature where it can upload projects (.zip files) directly from our application to our current php based project display site. We are currently exploring ...
Mike2012's user avatar
  • 1,761
4 votes
2 answers
3k views

How to add large self hosted videos to Drual 7?

The Video module for Drupal 6 has an option to use videos uploaded through FTP. The Drupal 7 version does not have that option. How can I embed large self hosted Video files?
Natkeeran's user avatar
  • 272
0 votes
2 answers
3k views

How to download file by clicking on icon in file module?

I have a File field in drupal 7 (with file module) which I forced with views to display as an icon and name of the file which uploaded. The Name displays as a link (to download file). Now I want to ...
Sheshkovsky's user avatar
3 votes
1 answer
2k views

How can I let registered users upload images using a form in Drupal 7?

I'm using Gallery formatter on my Drupal 7 site which allows administrators to upload images to my articles that are then shown on the article body. So great so far, but what I want is for the ...
randomDev's user avatar
1 vote
2 answers
4k views

Dynamic file directory for file fields

I just learned about the creating fields and content types and had a quick question about the file field. When you create a file field you can specify a relative path that the uploaded resource will ...
Mike2012's user avatar
  • 1,761
2 votes
3 answers
492 views

User submitted content in drupal (Drupal Noobie)

First off, I would like to state that I am a total noobie when it comes to Drupal and do not have a great deal of experience with web development in general. On the other hand I have a good deal of ...
Mike2012's user avatar
  • 1,761
6 votes
4 answers
8k views

How do I implement a VIDEO gallery like gallery formatter but with videos?

I need to implement a gallery of videos in DRUPAL 7 like gallery formatter in Drupal 7 but with videos. The videos are from YOUTUBE. I created a content type named "video" and I have used the module:...
cabita's user avatar
  • 991
21 votes
6 answers
16k views

How to find orphaned files and images which are not linked from any css stylesheet or from any node?

Is there a way to list all unused files which reside inside public file system and inside a theme directory and list them, or maybe even have an option to delete them automatically? I mean files ...
camcam's user avatar
  • 2,111
4 votes
2 answers
1k views

Fetch images across the internet with File API

How can I use the FileAPI to fetch an image from another website via URL, and bring it into Drupal? Here is what I tried: foreach ($data['photos'] as $item) { $photo = file_get_contents($...
Kevin's user avatar
  • 27.8k
1 vote
1 answer
330 views

Can i populate the empty sites/default/files/ with files from a local installation?

There are no JavaScript and CSS files in the following folders: /home/vhost/WWW/mysite.com/sites/default/files/js /home/vhost/WWW/mysite.com/sites/default/files/css All the folders are empty. Can i ...
zero's user avatar
  • 353
3 votes
2 answers
5k views

Access description field for file in a view

Gents, I have two fields that accept multiple file uploads. One of those fields has file descriptions enabled. I need to access those field descriptions in my view, but I don't see the file ...
Lester Peabody's user avatar
0 votes
0 answers
117 views

File uploads for non-administrators fail

I've got a file field on a profile type. The allowed file extensions is .pdf. When I try to upload a pdf file with the admin account it works very well, but when I try to upload with another ...
Nada O's user avatar
  • 193
1 vote
2 answers
1k views

Link to a file field in the body text?

I have a content type that has a file field. I would like the body field to be able to link to the file. E.g. "Our research (PDF download) shows..." with the link becoming the download path for the ...
artfulrobot's user avatar
  • 4,009
3 votes
4 answers
4k views

How to resize automatically when users upload images by CCK image field

I would like to make the size of images smaller automatically when users upload them using CCK image field. For example, I would like to let users upload big sized images like 5MB but resize them ...
chinita7's user avatar
  • 1,021
5 votes
2 answers
5k views

File upload hook - how to integrate existing file manipulation code into Drupal

I want to create a waveform image for every mp3 file I upload in a Drupal 7 website (as admin), and store it as a png for display in the frontend. I can use this script in order to do that. I want to ...
whonoes's user avatar
  • 153
3 votes
2 answers
2k views

Noob question about private files and Content Access

This is almost certainly a really stupid question, but the Drupal 7 site we're building has an image gallery that users can upload content to. Unauthenticated users should not be able to see these ...
Owen Blacker's user avatar
1 vote
1 answer
755 views

How to have a webpage File Save As filename different from the page URL?

For example - see this BBC News Page: http://www.bbc.co.uk/news/entertainment-arts-16578905 Now Save the page as a web page - notice how the actual filename of the file saved ( BBC News - Golden ...
therobyouknow's user avatar
8 votes
1 answer
4k views

Upload progress on nginx

I am using the latest version of Drupal 7 and my webserver is Nginx. I checked the status report and it says: Upload progress Not enabled Your server is not capable of displaying file upload ...
Ruriko's user avatar
  • 615
1 vote
1 answer
444 views

Drupal file upload field via popup

So I'm using a "file" type input inside a form which is called within a popup...but then whenever I submit that form inside the popup after having selected a file, the popup always return an error.... ...
PillarOfLight's user avatar
0 votes
1 answer
975 views

Upload multiple files (with multiple attr) in custom form: how to get files?

I've made a form. Now I want it to upload files. I've made a form element to do that: $form['attachments'] = array( '#type' => 'file', '#title' => t('Attachments'), '#name' => '...
Rudie's user avatar
  • 184
3 votes
1 answer
336 views

Theming views and overwriting the default file upload display

Theming views in Drupal 7 can be very tedious to newbies. In the following example, a seemingly simple task has become an overwhelming research project into the innards of Drupal! Hoping an ...
Starfs's user avatar
  • 322
2 votes
1 answer
2k views

how to make an automatic download button?

I have a Content type with a file field. I want to add another field (download button) which when users click on that, they would be able to download the file (uploaded in file field), and show file ...
Sheshkovsky's user avatar
0 votes
0 answers
55 views

How do I convert a document to a preview image? [duplicate]

Possible Duplicate: How can I convert first page of a pdf as its thumbnail? I have a file field which allow users to upload document types like pdf, doc and txt. Now I want to convert first page ...
Sheshkovsky's user avatar
2 votes
2 answers
258 views

Uploading files to two separate locations

I'm uploading a clients website early next week and they've just informed me that they use load balancing software to distribute over two servers. Normally this wouldn't be an issue because content ...
Dan Hanly's user avatar
  • 197
4 votes
2 answers
687 views

Allow a user to select where to save an uploaded file

I have installed an Open Atrium, which is based on Drupal 6, but this is a rather general question towards Drupal 6. In every content type I have an Upload File field which work just fine, but it ...
Jim's user avatar
  • 303
7 votes
3 answers
5k views

How do I redirect users to a predetermined url after login?

I have a view in Drupal 7 that lists PDF files. I want to keep track of the users that open that file; so I want that, if they are not logged in when they click, they are sent to the login/sign up ...
Lucrozade's user avatar
2 votes
2 answers
8k views

How can I convert first page of a pdf as its thumbnail?

I'm trying to build a document sharing site so I need to convert first page of each document as its thumbnail in a grid view. I've found some module like PDF-to-ImageField module, but unfortunately it ...
Sheshkovsky's user avatar
1 vote
1 answer
969 views

YouTube thumbnails - options for adjusting interface widgets and behaviour when clicked?

I wish to add YouTube videos to my site as links - I want to use a thumbnail of the video. I'm not concerned with which thumbnail used (as discussed here: How to control preview image in Youtube) ...
therobyouknow's user avatar
2 votes
1 answer
223 views

How do I control the file appearance using File Entity?

By installing File Entity module I was hoping to be able to control the way all file items are rendered, for instance I need: file rendered as a link wrapped inside an <li> element, or a link ...
no more drupal's user avatar
1 vote
2 answers
2k views

Can't use file field in custom form - gives AJAX errors

I'm building my own form for editing certain fields on a node type, and I'm using field_attach_form() to add the fields from that node type to my form. Use field_attach_form() to get the fields added ...
geerlingguy's user avatar
  • 5,483
0 votes
1 answer
541 views

Upload Image on form submit

I have a form with an image field, I want to remove the upload button and submit the image while the form is submitted. I not able to find out how to proceed further with this. Any help is greatly ...
user avatar
3 votes
1 answer
3k views

How to conditionally show a views field?

I'm using the video and video embed field modules to display uploaded video and embedded youtube videos. I've added a video field and video_embed field to the video content type. The user either ...
uwe's user avatar
  • 12k
16 votes
3 answers
15k views

Given a File ID (fid) how can I get the HTML that represents that fid?

I'm looking to do something like this $fid = 15; $file = (array)file_load($fid); $content = drupal_render($file); echo $content; file_load() drupal_render() And specifically this fid is from the ...
mikeytown2's user avatar
  • 8,332
1 vote
1 answer
249 views

Media/file repository - asset autocomplete widget?

Does anyone know of a module which would install an autocomplete widget for file and image fields on admin-side? The purpose of it would be to allow admin/editor to re-use a reference to an already ...
no more drupal's user avatar
3 votes
2 answers
1k views

Image and other media file management

My question may seem vague but I'm confused and need advice on Drupal 7 media files management, so please bear with me. I'm looking for existing modules or ways to build the following functionality ...
Ari Linn's user avatar
  • 557
4 votes
1 answer
583 views

Which function(s) actually create the physical resized image files?

By default, Drupal 7 ships with 3 images styles: thumbnail, medium, and large. For example, I upload a image file ('abc.jpg') with the image field (I assume the field name is called 'image'); while I ...
gilzero's user avatar
  • 6,037
1 vote
2 answers
169 views

What can cause an incorrect base_url to intermittently appear for images?

I have a set of images provided by a view. They are displayed on the site home page via a panels page. JCarousel is used on display. An image cache style is applied. When previewed in the view, they ...
Justin's user avatar
  • 3,703
1 vote
3 answers
4k views

How to create an Audio playlist [closed]

Are there any opportunities to create "classic" playlists with Audio or any other similar modules? I primarily would like to let mp3-files be played, but in a way that it cannot be easily directly ...
Sk8erPeter's user avatar
  • 1,799

1
44 45
46
47 48
50