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

learn more… | top users | synonyms

1
vote
0answers
13 views

D7: Allowing more filetypes to upload and get file value

I'm making a custom form and I want it to be able to upload .pem files. All things I find in google don't work. I already added it into the 2 arrays of file.mimetypes.inc: 1000 => 'certificate/pem', ...
0
votes
0answers
11 views

how to suppress validation errors with a upload button on a drupal

In one of my profile type i used file but issue is that when I upload file and click upload button. it validate error message of other filed I mean it works as submit button. so how to stop validation ...
1
vote
1answer
21 views

Load file of content by weight

Let's suppose I have a simple content type with title, body and file fields, and file field is multi value. I create a piece of content and upload some file in my field. Finally my content is ...
3
votes
5answers
134 views
+200

How do I programatically add fields to the Media module's field tables?

I use the Media (ver, 2) module to manage a library of media assets. It allows reuse of the same media in several nodes and keeps track of media use. When reusing media (e.g.) images, I want to be ...
1
vote
0answers
18 views

How to make the File Attach option available?

When attaching a file to an instance of a content type, there is an option to use ‘file attach’. This is an alternative to uploading a file to the server from one’s local computer. Instead, when ...
1
vote
0answers
14 views

Associating an organic group to an uploaded file

In D6 we have mysql> describe files; +-----------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | ...
-1
votes
1answer
32 views

How do I move sites/default/files to AmazonS3 and update database? [closed]

Currently I am using S3FS to upload files to AmazonS3. Which is fine. But I have some old files, already located on local, at site/default/files. How can I move those files to AmazonS3 as I am running ...
0
votes
2answers
28 views

attach an programmatically generated pdf file to a node

Im using PDF Using MPDF module to generate 4 files when a node is saved using its API function pdf_using_mpdf_api: function MYMODULE_node_insert($node){ // PDF generation : // ...
1
vote
2answers
18 views

Sharing files privately individual users

I'm trying to create a Drupal 7 feature whereby an admin uploads multiple files that are only visible/downloadable by a specific user. These files would be visible on the user's profile page or ...
2
votes
2answers
22 views

What causes 'sites/default/files is not writable' during Drupal 7 Install on Redhat w/ Apache?

I am attempting to install Drupal on Linux Redhat using Apache, but it will not allow me to pass step 3 due to the fact that sites/default/files is not writable. I have followed the instructions on ...
1
vote
2answers
14 views

Forcing file migration after deleting field

I have a situation where I am working on Drupal 6 to Drupal 7 migration. The migration is being done in stages, and stage one is now live. I am working on stage 2, and have run into a snag file file ...
1
vote
1answer
20 views

When removing a file it still is present on the machine

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
16 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
42 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
33 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
21 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
37 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
12 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
34 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 ...
1
vote
1answer
67 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
31 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
11 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
15 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 ...
0
votes
0answers
32 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
9 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
16 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
21 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
60 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
58 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
22 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
23 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
37 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
9 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
18 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
44 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
31 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
18 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
32 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
27 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
19 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
81 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
65 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
27 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
260 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
39 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
62 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
30 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
9 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 ...