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

learn more… | top users | synonyms

0
votes
1answer
11 views

When removing a file it still is present on the machien

When deleting a node the files attached to that node are removed from the server just fine. However if I edit the node and remove the file there, it stays on the server even after deleting the node. ...
0
votes
1answer
14 views

How to find node that a file is attached to

There is a file that I want to find the node it is attached to, or at least the user that submitted it. I was able to create a view that finds the file itself but when I a field for node id, it ...
0
votes
1answer
28 views

htaccess in files folder breaks displaying of images

recently I installed media module and all files in /file directory became unreachable - browser gives 500 internal server error. I can confirm files exist there. After removing htaccess from files ...
-1
votes
2answers
32 views

How can I check that the file is present in database entry and also in files folder?

I want to write a script where I want to check whether the files are present in files folder of drupal/sites/default/files and is it existing in the database table file_managed. ...
0
votes
1answer
17 views

How to Display a pdf, rft, doc, txt on a overlay?

I collect user resumes by using a file field. That field is been display it on view and when you click on it it would download the resume file (either pdf, rft, doc, txt). I would like to open that ...
0
votes
0answers
31 views

I want to prevent Duplicate entry in webform uri?

I have a webform but when user's are uploading the file in webform they are getting "Error: The website is encounter an unexpected error" when i check the dblog i came to know that the ...
0
votes
0answers
11 views

How to Setup Rules to Add a Flagged File to a New Node

I have a view that is showing a list of Files. Each file has a flag on it and when that flag is clicked I want to use Rules to create a new node that has that file populated in a File Field. Help is ...
0
votes
0answers
27 views

Error When Uploading Files/Media to New Theme Installation Profile using Godaddy Linux Hosting

I'm making a drupal site using a themeforest template. It is a very good template with lots of custom modules and blocks. But there is one bug with the install profile, and maybe it's because I have ...
0
votes
0answers
42 views

Don't upload file on save

On Drupal 7, if a user doesn't click upload, the file is uploaded on save, but this can be a problem for large files and execution time limit. How can I disable this? I need the file being uploaded ...
1
vote
1answer
59 views

I get 404 when uploading private *image* files in D7

I have this Drupal 7.15 site (it needs an upgrade, I know). I have some public and private files in there (all according to my settings). I have a public file field and a private file field. So, ...
1
vote
0answers
24 views

Warning: filesize(): stat failed when generating a pdf file

I need to generate a pdf file from Drupal, using LaTeX. I have the following file /sites/default/files/certificates/cert.tex: \documentclass{article} \usepackage[a4paper]{geometry} ...
0
votes
1answer
10 views

Pathauto changing drupal_get_path file path

Pathauto changed where drupal_get_path looks for an image path I'm calling. <img src="<?php print drupal_get_path('theme', 'maafs_subpage'); ?>/images/iafe.jpg" alt="Iafe the Network"> ...
0
votes
0answers
12 views

How to host files on network drive if site is hosted remotely

I host my D7 site remotely but have to to deal with many large files that I would prefer to store locally to avoid complexity and cost of remote storage. How can I use local network storage within my ...
-1
votes
0answers
20 views

Elfinder Super Slow Loading

I have the elfinder module enabled for the filebrowsing part of CKeditor. I have to wait up to 5 minutes of the loading bar for it to display the files and for some users it times out. I have updated ...
0
votes
0answers
18 views

Copy files from remote URL to S3 via s3fs module stream wrapper

In the process of upgrading a news site from D6 -> D7, I'm upgrading a custom module that imports Associated Press stories from their feed that we subscribe to, and part of the process involves ...
0
votes
0answers
8 views

file_managed vs files tables

I am attempting to add a file to a node. I am using the following code which is saving the file to the file_managed table in Drupal without issue: //query old DB for the pieces of the file I need ...
0
votes
1answer
13 views

Import a PDF from within a page (Feeds / Mailhandler)

I am using Mailhandler to import quite a bit of content. The one piece I'm not able to get is a pdf. The email body contains five links. The last link goes to a page that has an iframe with a source ...
0
votes
1answer
19 views

Image file keeps getting deleted

I'm using the Image Title module with Drupal 7. I can successfully upload an image to be used as a title, however the images keep getting deleted. It looks like the problem is similar to this question ...
1
vote
1answer
58 views

Private files won't be saved anymore in their intended location? (D7)

I've got a D7 installation for some time now, with a content type that has a "private file" field. It was working just fine up until now. My files usually got uploaded like: ...
0
votes
0answers
51 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 ...
0
votes
1answer
11 views

How to use long file description?

Is there any easy way to store a long text description of an uploaded file? I want to provide a long description field (textarea) when users upload files, so they can write as much as they need. ...
0
votes
0answers
19 views

archiver_get_archiver() returns FASLE

I was doing some zip processing and came through the code which update_manager_archive_extract() uses. This is the code:- $path_to_zip = '/some-local-path/testfile.zip'; $archiver = ...
0
votes
1answer
21 views

Issues with file upload fields

I'm working on a site where someone did a lot of security updates. After reviewing the site, we found a bug. When you try creating a node with a file upload, when you click the save button, instead of ...
0
votes
0answers
30 views

Views sort by file field delta

I've seen this problem hinted at in several other questions but all the answers have skirted the problem in some way, not answering how/if this can be done. I have an image field on a node ( using ...
0
votes
0answers
7 views

drupal_realpath in ajax php script not working

I have an AJAX script, which boostraps the drupal system to get access to the drupal functions. The I like to convert a file's internal uri (e.g. "private://test.jpg") to a local filename (e.g. ...
0
votes
1answer
16 views

Get file extensions in drupal exposed filter

I had a content type with a file upload field. The user is restricted to upload files with specified extension in Allowed file extensions settings. I created a view for listing all files. Now i need ...
0
votes
1answer
37 views

Remove language prefix from file url on drupal 6

We have a multilingual site on Drupal 6. which seems to work fine, we created a rotor view on the default language (en). This views looks great on default language which loads without any language ...
1
vote
1answer
29 views

Drupal 7 Weform 4 attach file message stays even though correct size file is updated

I have set a file size limit of 4mb for the file type field. Current behavior When a file greater than 4mb is attached (10mb.jpg) and upload button is clicked, there is a message shown that mentions. ...
0
votes
0answers
15 views

Referencing public files when editing nodes

Right now when I want to include an image into a node I have to specify a path like <img src="/sites/example.com/files/profile.jpg" /> The problem is if the Public file system path ...
0
votes
1answer
29 views

Rendering a generic file field containing an image

Drupal 7.34 Media 7.x-1.4 Views 7.x-3.8 I have a generic file field. Sometimes the uploaded file is an image, and in these cases I want to render it in a View as a thumbnail. So I do the following: ...
0
votes
0answers
24 views

Custom file type with image field

I've attached an image field to my custom file type to add additional information to my uploaded PDFs. The file field is attached to the node entity. But everytime I upload a PDF for my custom file ...
0
votes
1answer
17 views

Accessing files from a local cdn

I know that drupal comes along with 2 default stream-wrappers(public and private). What I want to achieve is to have my images placed in an another server, where they can be accessed by a url similar ...
1
vote
2answers
79 views

Files (±50MB, audio) automatically repetitively deleted (after ± a couple of hours-days?)

Might I ask you what can be the cause and solution of: the automatic dissapearing of "large" files (±50MB, such as an audio file) that I have manually put into the root folder of my Drupal ...
0
votes
2answers
62 views

Download file field dependent on user role vs role field values

I have a type downloadable_item which has a field field_roles_allowed that is based on the Role Field Module. My goal is to have a field_download of file type that will show the file for download if ...
1
vote
2answers
26 views

Upload File upload and generate url

I have a site where there are several links to a single file. Is there a module that allows me to upload a file into the CMS, generate a link and use it as for these links? The Module would need to ...
2
votes
2answers
204 views

How can I rename uploaded files programatically? (auto-rename image files)

I am aware that the File Paths module allows administrators to use tokens to set patterns for renaming files, but as of writing (Jan 2015) there are more than 100 bugs in the queue and no updates to ...
1
vote
1answer
30 views

Adding accept attribute to managed_file field to specify file types client-side

I've got a file field in a custom form like this: $form['image_upload'] = array( '#type' => 'managed_file', '#title' => t('Image upload'), '#description' => t('Upload png ...
1
vote
2answers
55 views

How to retrieve files from url when they have whitespace into filename?

I need to import a lot of images/pdf from urls, and then save them to a file/image field into nodes. To achieve that, I am using this script (example with images): if($image!='\N'){ ...
0
votes
1answer
26 views

Drupal can not open pdf file

I am trying to open a pdf file from server to be shown for the user, but it seems that for somereason I can not open it (it works on different enviroment). What am I doing wrong or what should I do to ...
0
votes
0answers
23 views

Not able to upload file in content type form without filling all required fields [duplicate]

Uploading a file in node/add/mycontenttype is failing and displaying required field validation errors for fields that have not been filled out. If I fill all required field then upload the file it ...
0
votes
0answers
8 views

How does file_entity_file_download work with file_file_download?

I've recently upgraded my file_entity module and now have access woes on managed private files. file_file_download() is granting permissions, as it should, by looking up whether the user has access ...
1
vote
0answers
14 views

Drupal 7 - Change of Files/Image location to a new organized structure

I would like to clean up savely the exstising files Drupal 7 structure and change the location of my exsisting Files/Image to a new organized structure e.g. in files/content-type/year/node-id Would ...
1
vote
1answer
48 views

handling file upload for drupal 6

I have a question about handling file uploads. I am trying to implement a form that will allow the user to upload a file. I do not need to store the file, though. I just need to take the uploaded ...
0
votes
1answer
75 views

How can I overwrite uploaded file via Filefield?

By default in Drupal 7, if I upload image.jpg via a file field in my node, save the node and then edit that same node and re-upload image.jpg, it will name it image_0.jpg. I want to replace the image ...
0
votes
0answers
16 views

Saving a file with a custom filename

I have a custom form that uploads a couple of images used in static designs. What's the best means of having these files uploaded to a directory under public:// with a hardcoded filename to be set on ...
1
vote
2answers
270 views

Private files not found 404 error

My installation is Drupal 7 + Nginx + Varnish cache My private files path: sites/default/files/private/demo.img URL in browser: system/files/demo.img When I try to open private file: ...
0
votes
1answer
28 views

How to change the directory of file_create_url to default for a custom domain

Suppose, we have a file: /sites/default/files/picture.jpg Drupal is installed into a subdirectory: /drupal. There are 2 domains, attached to the site: exchange exchange-test (uses different DB) ...
0
votes
2answers
82 views

How to attach files to node instead of uploading?

I have 2 content types, Files and Events. Files content type is used to upload files like Image, PDF, Doc etc. Events content type has a field to attach a document which is uploaded by files content ...
1
vote
0answers
39 views

Advice for Image Management with New Site

I am looking for the best image management options for a new Drupal site. The original site has several thousand images, and a dynamic site is expected to explode that number to tens of thousands. ...
0
votes
1answer
53 views

How to Scan directory for list of sub folder names not files inside sub folder

I have a folder(root folder) with thousands of sub folders and json files inside sub folders.How can i get list of sub folder names inside folder(root folder) using file_scan_directory.