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

learn more… | top users | synonyms

0
votes
0answers
18 views

How do I add files to the solr index in Drupal 6?

I'm using Drupal 6, Solr 4.9.0 and Apache Solr module v 6.x-3.x. I'm trying to use Solr to index files attached to nodes, but it's not working. I'm using the Solr Attachments module but I know it's ...
0
votes
2answers
20 views

How to access and edit files from admin panel?

How i can acces my files without going to host control panel or by ftp. I mean if any module is for that to access and edit files from Admin panel.
0
votes
0answers
8 views

Drupal deletes all files from a multiple-file field on an error

In Drupal 7, I have a file field in a content type defined with a size limit of 8MB per file and unlimited files. That works fine, the problem is that when a file is uploaded that is 9 MB. Then, an ...
0
votes
1answer
30 views

How to create a directory during a module install?

I need to create a directory in public:// when the module is installed via file_prepare_directory(). I used this code in function mymodule_install(): $mydir = 'public://mydir'; ...
0
votes
1answer
25 views

How to create a link to a file in a module?

In Drupal 7 I have a custom module that create a file in public://company/my.csv but in my module admin interface I want to create link to this file in a status message : drupal_set_message('download ...
1
vote
0answers
57 views

Post/Upload file using Drupal Services Module without base64 (Using REST multipart/form-data )

I am sure its possible in Drupal also. Here is the reference for Java code http://stackoverflow.com/questions/5723429/use-rest-client-to-call-multipart-form-data-rest-web-service and ...
0
votes
2answers
31 views

How to upload a csv file with an admin form?

In a custom module, I created an admin form but I need an input to upload a csv file. When the file is uploaded I need to parse in and then I add data to db. I already made "add to db" and "parsing" ...
0
votes
0answers
24 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
11 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
19 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
21 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
15 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
23 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
18 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
22 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
27 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
19 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
24 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
24 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
34 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
33 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
21 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
63 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
18 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
17 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
22 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
9 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
68 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
30 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
41 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
25 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
40 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
33 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
15 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
21 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
210 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
114 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
31 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
152 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 ...