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

learn more… | top users | synonyms

0
votes
0answers
13 views

Add custom file field upload button

I'm adding a custom video file field to a content type. I use the hook_widget_form to add the file upload fields, but there's no submit input. I'm looking hook_form_alter to add the upload input and a ...
1
vote
0answers
14 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.
0
votes
1answer
9 views

Upload file in system_settings_form in Drupal 6

I have a code that was supposed to upload 2 files: function lafemme_background_images_form() { $form = array(); $form['#attributes']['enctype'] = "multipart/form-data"; ...
0
votes
0answers
20 views

How to upload images in form - Drupal 6 [closed]

I want to create a form with 2 fields for uploading 2 images. I have read some examples on internet and doing everything by them. Problem is that the form is acting like there are no files selected ...
-1
votes
0answers
18 views

Associate Uploaded File with Friendly Name?

Use case: Upon a User uploading a file (pdf, .docx, etc) I want them to register an alias (friendly) name. From thereon, throughout the application, whereever the file name is displayed, it only ...
0
votes
2answers
15 views

Forbid access to file page (view display mode = full)

I want to disable access to the view display page of file by url like file/fid. What's the good way for this? I have tried to use the hook_node_view() but it not called for the files.
0
votes
1answer
28 views

How to find content that uses a File (File Entity)?

Want to be able to see what content has file field(s) that refer to a specific file. Is this do-able using a View (with Relationships)? (had a go already, unsuccessful so far). Alternatively I'd ...
0
votes
0answers
7 views

Drupal file naming convention [duplicate]

I have to extend a Drupal project management project, and since I've only been working with PHP for not too long, I'm not very familiar with PHP naming convention, and practices, such as having an ...
2
votes
2answers
29 views

Custom module 'managed_file' variable info keeps disappearing

I have a custom module which allows a 'managed_file' upload in the settings/config page. This works fine and displays as expected after uploading (with the filename linked, and a "Remove" submit ...
0
votes
1answer
21 views

Overview & help with drupal files and folders on Win 7

I am a newbie. Please forgive me if this is a dumb question. I'm trying to wrap my brain around what is Drupal and how it works. I installed Acquia Dev Desktop successfully on my Win 7 computer. I ...
0
votes
1answer
28 views

I want to call a mymodule.functions.inc file

Hi all drupalers i am new in drupal coding i wrote a new drupal module that works perfecr but my boss wanted to put all my functions of my .module file in a new folder called 'includes' and in a files ...
0
votes
2answers
24 views

moving a drupal website to another server

I've been working on a drupal website in a server for months but after moving it to another server and url some of the files are not read. for example it seems that it does not read colors.css or all ...
0
votes
0answers
20 views

include Search Files Attachments in custom search view

I have already spent hours on this problem – so I really hope for your help! I have the Search Files module running and indexed my PDF files successfully via the attachments option. The default ...
1
vote
1answer
20 views

$_FILES superglobal array key is not what file.inc expects

I'm trying to do some custom stuff with a file upload field via the form API. I call to file_save_upload() but it thinks that the upload is empty because it's examining $_FILES['files'] but for some ...
0
votes
1answer
28 views

printing file entity fields in a node.tpl

I have some fields in a file entity type. Now I need to print some of these fields directly in a node.tpl. How can I do this?
0
votes
1answer
21 views

How to find if file was successfully uploaded to webform

I am using the file field in webform, I would like to check if the file was successfully uploaded. I was using .onChange But that only means that a file was attempted to be uploaded. How can I ...
1
vote
0answers
14 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
16 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
22 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 ...
5
votes
3answers
196 views

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
22 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
21 views

How do I associate an uploaded file to an Organic Group? [duplicate]

In D6 we have mysql> describe files; +-----------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | ...
0
votes
2answers
51 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
22 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
55 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
15 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
21 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
20 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
72 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
35 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
24 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
55 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
56 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
72 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
56 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
13 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
16 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
54 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
18 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
18 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
23 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
61 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
70 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 ...
1
vote
1answer
15 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
24 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
58 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
16 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
23 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
60 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 ...