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

learn more… | top users | synonyms

0
votes
0answers
19 views

Interface for file replacing

I have to make simple interface for site support staff: Authorized user must have possibility to replace a document file (price-list) with new file. This new document file can have different name and ...
2
votes
2answers
31 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
7 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
34 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
23 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
21 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
47 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
46 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
21 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
11 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
31 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
36 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
90 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
32 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
54 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
53 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
11 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
46 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
35 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
20 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
24 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
23 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
31 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
18 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
34 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
27 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
37 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
16 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 ...
0
votes
1answer
58 views

How to get file uploaded in webform through views?

This code helped me to get the file uploaded in webform in the results-submissions tab of the webform. I used this code in template.php of the site's theme. <?php function ...
0
votes
1answer
11 views

Migrate into custom File Type

I am writing the script for a file migration and am using the MigrateDestinationFile method. I noticed that when I migrate the files that they default to the Document file type. However, I have ...
0
votes
0answers
15 views

Audio files are not played in Drupal 7

I installed mediaelement module and download mediaelementjs files. the downloaded folder name was johndyer-mediaelement-2.14.2-0-g743f446 so I simply renamed it to mediaelement and copied in the ...
0
votes
0answers
27 views

How to download files uploaded in a webform through views module?

I have something like this in registration form and I am using webform module. I need to show the uploaded file link in reports (using views module) When they click they should be able to download ...
0
votes
0answers
28 views

move_uploaded_file failed to open stream permission denied

I am testing an intranet site with a small pool of users. I am using the IMCE module to allow people to upload files to the website, including images. I can upload images fine. However when other ...
0
votes
1answer
91 views

Maximum upload size for file is not working

I have set file filed with 25MB Maximum upload size. But when i upload more then 25mb file it is uploading. How to stop this.Can we create any custom module for file size.
0
votes
1answer
47 views

How to restrict download file for authentication in drupal

I have create one file field in my node create form , file is accepting (txt,pdf,xlx,docx) files only. but in node view page, i want to authenticate our file before download. I have create one term ...
-1
votes
2answers
109 views

Why file field button disappeared while uploading file? [closed]

I have installed fresh drupal-7 and create file upload field with manage field with 8M Maximum upload size. when i upload a file 25MB then it is showing error message and file field missing. Before ...
0
votes
0answers
13 views

Views output (table format) - rewrite the file output as image with url

I have created a tabular display of fields of a content type using views. Please see the attached screenshot. I got the file field as icon and the file name (under submitted files). But instead, I ...
0
votes
0answers
21 views

Access to node files with SMB share or similar

I'm thinking to use drupal as an ECM, but I miss an essential function (from my point of view): to be able to access to the files via samba share, webdav or similar. My idea is the following: Imagine ...
0
votes
0answers
42 views

How to previsualise an image to resize it in a custom module form

I've than a form programmatically that has an image type field. After uploading the image, I can see something like this: What I need is to instead the name show the image, something like this: ...
0
votes
1answer
65 views

Attaching file to node field drupal 7

I have a problem. I'm trying to attach file to node field by this code function calculator_page_form_validate($form, &$form_state) { $file = file_save_upload('file', array( // Validate ...
0
votes
1answer
22 views

Attachment node field vs. file fields in a content view

Sorry, can't think of a better title... I've created a content view for a specific content type where each node has lots of attached files in one 'attachment'' field. I want a table of files with ...
0
votes
0answers
31 views

Get download link for file issued by Commerce File via PHP

I have set up the Commerce Module on my website with the Commerce File contrib module, which is working fine. However, I would like to be able to display the links to the files that have been ...
1
vote
1answer
32 views

Add custom files/file-fields to panels pages

I would like to add content from a set of file fields to particular pages (via panels/panels everywhere/panelizer) with the ability to change the files by panels IPE editor or backend form. Ideally, ...
0
votes
0answers
42 views

No feedback from Image Uploader

i've setup a content type that contains two image fields. One for a main image and the second for 4 smaller images. The trouble i'm having is when you select your image and click upload, there is no ...
1
vote
2answers
123 views

Changing file name on upload

I'm trying to automatically add prefixes to uploaded file names so they can later be processed by non-drupal scripts. I want to do that while the user is uploading files during creation/editing of a ...
0
votes
1answer
135 views

IMCE file browser doesn't list the files in the Directory path that are uploaded by FTP

I installed IMCE and Filefield_sources modules to browse the files on the server. my website is on the localhost yet. the directory path of User-1 which is assigned to the administrator is set to ...
1
vote
1answer
55 views

Is it possible to get access to files uploaded via FTP in the media module in Drupal 7

I installed media module to select files from server instead of directly upload them but in the library tab only the http uploaded files are available not the FTP uploaded files. Is it possible to get ...
1
vote
0answers
66 views

How to pipe file uploads to subdomain?

I've got a Drupal 7 site on Apache and Varnish, sitting behind the CloudFlare CDN. Everythin on mysite.com goes through cloudflare... I also have a "direct access" subdomain set up at ...