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

learn more… | top users | synonyms

0
votes
0answers
18 views

admin/content/media/list - “Add file” and “Import media” not showing

I need to allow a type of editor role to upload files. I have given the role all the "Media" permissions, and they are able to access the /admin/content/media/list page and see all the media, and the ...
0
votes
0answers
7 views

Add +Indexes (with autoindex) to sites/default/files directories

On my site I've to add a custom directory in sites/default/files, like "sites/default/files/archive". A crawler has to index this directory and so I've to add a "+Indexes" option in Apache (with ...
0
votes
1answer
12 views

How to solve the “No file was uploaded.” when trying to use custom form field?

I get "No file uploaded" when I try to use a custom form in drupal .Below is the code which I have used to upload a file in drupal custom form. function ...
0
votes
1answer
17 views

How to hide path location in drupal 7

Hi how to hide path file in drupal now it looks like this: http://localhost/drupal/sites/default/files/document.pdf i what to change to look something like this: ...
0
votes
1answer
20 views

How to programatically change file user owner

I'm using drupal services module. I can upload files through web services but the problem is all created files has the same owner, that is, the user of the web services. I would like to change this ...
0
votes
0answers
7 views

How to use file_prepare_directory and make the file writable

I am writing some code which imports nodes programmatically. Part of this code involves importing files, which would then be turned into file entities and attached to files. I am having a permissions ...
0
votes
0answers
19 views

Link menu item to network path

I am trying to figure out a way to allow content editors to add menu items that link to Windows shared drive, example path: file:///w:/documents/001.pdf Any ideas how to best do this in Drupal 7?
0
votes
0answers
15 views

Add files to private directory?

I have set my "Private file system path" for uploaded private files (admin/config/media/file-system), but I am confused as to how to add any files to that directory. I expected to find a private files ...
0
votes
1answer
16 views

IMCE file upload dynamic path problem

I am trying to setup a filefield using imce to allow the user to upload files however I am having problems setting it up trying to get a unique folder for each node. So for example I have set the ...
0
votes
0answers
19 views

Help developing a module for managing unzipped files

I have a content type called resources and one of the fields is a file field where users can upload content such as a pdf, video, docx, swf etc... What I am trying to do is allow user to upload a ...
0
votes
0answers
24 views

How to programmatically update a file field

I have a file field (audio recordings) on a node. So all these files are located in sites/default/files/recordings. I have set in the settings that those files are now stored in subfolders by ...
0
votes
1answer
10 views

Soft and hard copies of a single product in Drupal Commerce?

I am setting up products for an online store using Drupal Commerce. Some of the products (eg. books, music) require an option for both hard copies and soft copies so that customers can choose one or ...
0
votes
0answers
23 views

Entityform send uploaded files as link and not as an email attachment

I am using Entityform to send email notification to admin when visitors submit a form with an uploaded PDF file. How do you get the uploaded file to be provided as an email attachment and not as link? ...
0
votes
1answer
17 views

How can I attach multiple pdfs to drupal_mail() function?

Was doing something like this global $base_url; $uri = $base_url . '/sites/default/files/test.pdf'; if(!empty($mail_content)) { /*send mail */ $to ...
1
vote
1answer
23 views

How to Make File Description Field Required?

Use case: Users who are authorized to use the edit page are required To upload at least one file Must have an associated description with the file. Plus: How can I edit "Description" to display ...
0
votes
0answers
21 views

EVA field: file entities filtered by taxonomy term of attaching node

I have a node type 'XY' with a reference to a taxonomy vocabular 'country'. Also I have a reference to this vocabular in file entities. I have a view with an EVA display. This EVA field is attached ...
0
votes
1answer
23 views

File module not updating field

I have a File field for uploading pdfs. When editing the page, I remove the current pdf and upload a new pdf. The new pdf is uploaded to the server and add to the /sites/default/files folder and I can ...
0
votes
0answers
25 views

File uploads: Warning: session_start(): Cannot send session cookie - headers already sent

When I check watchdog, I have lots of PHP warnings like this: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at ...
0
votes
1answer
28 views

Files in the file_managed table with status of 0, not deleting on cron

I have a form where I am uploading files to the "sites/default/files" directory. I am using the managed_file type in my form API definition. This is all working fine and I notice that in the ...
0
votes
1answer
15 views

Display file description in view using Download Count

I have created a view to display my most download files on the site and allow users to download them, to do this I am using the download_file and download_count modules. The view should display a ...
0
votes
0answers
48 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
16 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
15 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
2answers
17 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
32 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
51 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
26 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
30 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
29 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
35 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
22 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
35 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
26 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
20 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
23 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
207 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
26 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
22 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
91 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
28 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
105 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
28 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
118 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
29 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
79 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 ...