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

learn more… | top users | synonyms

0
votes
1answer
16 views

Changing file name on upload

I'm trying to automatically add prefixes to uploaded file names so they can later be processed by non-drupal scripts. I want to do that while the user is uploading files during creation/editing of a ...
0
votes
1answer
47 views

IMCE file browser doesn't list the files in the Directory path that are uploaded by FTP

I installed IMCE and Filefield_sources modules to browse the files on the server. my website is on the localhost yet. the directory path of User-1 which is assigned to the administrator is set to ...
1
vote
1answer
29 views

Is it possible to get access to files uploaded via FTP in the media module in Drupal 7

I installed media module to select files from server instead of directly upload them but in the library tab only the http uploaded files are available not the FTP uploaded files. Is it possible to get ...
0
votes
0answers
23 views

How to pipe file uploads to subdomain?

I've got a Drupal 7 site on Apache and Varnish, sitting behind the CloudFlare CDN. Everythin on mysite.com goes through cloudflare... I also have a "direct access" subdomain set up at ...
0
votes
0answers
27 views

Host FTP/File Manager on site

I've NEVER been a fan of plugging a ftp address in a browser to access the files from a ftp server. I am trying to find a find a module to allow drupal to host a FTP/File Manager. Example would be ...
0
votes
3answers
44 views

How to validate file using hook_file_validate? [duplicate]

I want to validate my file, I'm using hook_file_validate function test_file_validate($file) { $errors = array(); if (empty($file->filename)) { $errors[] = t("The file's name is ...
0
votes
1answer
35 views

How to upload enterprise blog picture programatically in drupal 7

I used "enterprise blog" module for user blog postings. From external php file, I have to upload user picture programatically (i.e., for App). I have configured bootstrap perfectly and user_load($uid) ...
0
votes
0answers
14 views

how to validate file using #upload_validator in drupal [duplicate]

i am using #upload_validators,using this reference https://drupal.org/node/546146#comment-8638769 but this is not working, Please let me know.. is it working in drupal 7 or not or for this ...
1
vote
2answers
156 views

How to save file uploaded with plupload integration module, and make it managed?

As described here, I can use Plupload integration module to upload my files to server. They go there, I can see them in temp directory, and that's the point I'm stuck. Code I'm using for a field is: ...
2
votes
1answer
49 views

What's wrong with my plupload implementation?

For reasons that are out of scope here I should not send packets over 32 MB, so my php.ini looks like this: ; Maximum allowed size for uploaded files. ; http://php.net/upload-max-filesize ...
0
votes
0answers
26 views

How to use [#upload_validators] in drupal 7 [duplicate]

I want to validate my form ajax based through serverside custom code I am using that code in the below , but ['#upload_validators'] is not working in Drupal 7,please give me any refrence. function ...
1
vote
2answers
93 views

how to validate file upload in drupal

how to validate file upload in drupal means, in my form allowed only txt file, but now user also can upload image file also after change the extention .jpg -> .txt function ...
0
votes
1answer
8 views

How to grant “edit any file” permission only to files attached to a certain node type?

The same question in other words: How a file can inherit edit permission from node permission which is attached to? Hi all, I have 2 node types: articles and cars. A file entity field is attached ...
0
votes
1answer
45 views

How to browse the server to upload files from there in Drupal 7 [duplicate]

I need to upload the audios and videos on server in a specific folder via FTP and then let the content managers to select them when they want to upload any of them in add/content path (because it ...
1
vote
0answers
22 views

File MIME type as argument. - Views

I am trying to create a view, listing nodes with a specific file type. This can be achieved using filters. But I want to do it using views argument. Say the view page's pathe should be ...
2
votes
1answer
23 views

Need some advice on implementing a HDFS file storage solution for drupal

We are looking into using HDFS to store our files users upload through the drupal Site. I have not been able to find a module that claims to do this already so we thought we would build one. So my ...
0
votes
0answers
11 views

File Upload module for Hadoop

Is anyone aware of a module that enables you to upload content to hadoop? I would like to be able to give the options to upload to NFS, Hadoop etc...
0
votes
0answers
43 views

Unsafe to use NFS to share sites/default/files between many Drupal instances?

If you have a high-traffic website backed by multiple Drupal instances, you may want to have a dedicated file server that hosts sites/default/files, and somehow share that between all those Drupal ...
1
vote
0answers
15 views

Feeds: how to populate a 'File' field from a path/filename in csv file? [duplicate]

I've got a csv file I'm using the Feeds module to convert to nodes. It's going pretty well, but I have many documents (max of 1 per node, though) that need to be associated with my nodes. I have ...
0
votes
0answers
20 views

file_delete not deleting a file it returns xml response

When I call file_delete($file) to delete a file, it does not delete a file rather it returns the following output: <?xml version="1.0" encoding="utf-8"?> <result><file><node ...
0
votes
1answer
31 views

Date tokens for file path

I have a big site with a lot of images and I want to use Date tokens for the File path. So I edit the image file and set Filepath: [current-date:short] I have the following issue: 1)Uploaded images ...
1
vote
1answer
30 views

Categorised Multiple File uploads within a page in Drupal 7

I have a situation where I have to upload multiple files within categories. This can be explained by the following picture. As you can see I need to upload multiple files, but also need to categorize ...
0
votes
1answer
31 views

How to set alias url for image address in a content type?

I added an image field for a content type and its directory is /content_type_image. it works correctly but when I add a content to this content type the uploaded image url on the website is ...
0
votes
0answers
43 views

Unable to delete file from node in drupal 7 using services

I want to delete a file from android app. I am hitting this url (mysite/endpoint/file/fid) with DELETE method and I get following response: 1 The response comes with 200-ok status but file has not ...
0
votes
0answers
8 views

On export Managed_files With Features No UUID Added

I have a custom field of type 'managed_file' along another field of type - 'file'. This node is exported into feature. The field with 'file' type gets UUID attached while it does not for ...
0
votes
1answer
56 views

Uploading an image from a form in my custom module

I am creating a custom module where the user uploads and image to the Drupal DB using a form. All the data except for the file is being put into the DB though. The only thing that shows in the ...
0
votes
1answer
22 views

Symlinked folder not recognized by file_exists?

A module I'm working on maintains a list of files in the private file system folder in Drupal. I use hook_file_download to control access to these files. I generate links to these files, which end up ...
4
votes
1answer
119 views

How do I save and retrieve CKEDITOR media (images and video) on a CDN?

I am using CKeditor, and I need to add media in content. I have enabled the media in the CKeditor configuration. Then I upload an image. Image is added Checking the path for the image ...
1
vote
2answers
45 views

how to get the absolute path for files based on fid

How can i get the absolute path for a file based on the fid? Sorry if this is a repeat, I did a search but was unable to find the answer.
1
vote
0answers
46 views

How do I get the absolute path of the file?

I have created a custom form using (drupal form API), Is it possible to get the absolute file of the file which will be selected in the file upload field ? like if user chooses to upload file from ...
0
votes
2answers
50 views

hook_file_download not triggered

I set the private file system to /system/files/export , I create a file in private directory programmatically and it not belong to any field ,and show link to user , I implement Hook_file_download , I ...
1
vote
2answers
153 views

how to create file programmatically only login users download it

I want to create file programmatically ,I want only authenticated user can download it and direct access return 403 to them, I search and saw How Can I Make File Downloads Available Only to ...
0
votes
0answers
8 views

Drupal 7: Filefield to stop duplicate files? [duplicate]

I've got a site where people can upload images. There is a good chance that some people might upload the same image twice. Is there a way I can check all images in a folder, or that has already been ...
0
votes
1answer
12 views

Form with managed_file value as link in email

Like the title says I want to make managed_file value to be a link on form submissions in the email. Webform has this option. When a user uploads file, on the email form submission there's a link ...
0
votes
1answer
55 views

Allow users to upload files and attach to specific nodes

Here's what I'd like to do: I have nodes A, B, C, and D I want users to be able to upload files using a file field on node D, but then for those files to actually show on nodes A, B, or C, depending ...
0
votes
0answers
24 views

Unable to save private files

I have the same question as is discussed here: Problem setting a private directory but no solution is provided... If I set-up a private directory in config/media/file-system, even if it is the ...
0
votes
2answers
35 views

D7 hook_node_presave - how to extract filename and filepath from a file field?

Here is what I am trying to tackle: I would like to allow a zip file to be uploaded via the default filefield upload widget for a content type. I am using hook_node_presave to take the zip file and ...
0
votes
0answers
74 views

.htaccess tweak to get access to /sites/default/files

I would like to upload some files onto my drupal website like audio/video for promotion. However, the .htaccess file in sites/default/files will not allow me. If I remove this file, it works but ...
0
votes
0answers
53 views

Find all the unused files

In Drupal 7 (I also have the Media module installed), there is a functionality in /admin/content/file that lists all files being uploaded. If you click on a single file's "Usage" link, you can see ...
-1
votes
1answer
40 views

how do i link to pdf file in drupal 7 [closed]

I have a content type in which i created flie type field and text type field.I uploaded the pdf file and wrote 'link' to text field. I have copied the link from uploaded file and with the use of ...
-1
votes
1answer
29 views

File browser for Drupal 7

There are many audios and videos that must be uploaded to my website and then displayed through views and nodes. some of these files are large size so it is very time consuming to be uploaded by ...
0
votes
0answers
204 views

Attach file to post using C# RestSharp and Drupal Services

I'm writing a C# app that posts to Drupal using Rest calls to the Services module, I can connect and create new nodes easily but I cannot figure out how to attach files to the nodes. Using the ...
0
votes
0answers
74 views

Can't change the Public file system path

I want to change the public file system path on my Drupal 7 install. I go to admin/config/media/file-system and enter a new directory where it says "Public file system path". The new directory exists ...
0
votes
0answers
95 views

Writing custom PHP code in Rules to check if a file field has a new value

I need to create a condition in Rules that evaluates whether a new file has been uploaded to afile field. The file field has an unlimited value setting and I need to send out notifications to users ...
0
votes
1answer
47 views

Private Files and corrupted files [closed]

Hello fellow Drupal expert, I'm in search of wisdom. Some said i can find it in here :) Okay so here's my issue. We got an intranet and we'd like to have some privacy (if you know what i mean). ...
0
votes
0answers
13 views

Running a command on uploaded files

I have a content type that has a file field for uploading an MP3 track. I'd like to automatically normalize uploaded MP3s using the mp3gain command-line tool. How can I do this? (It looks like Media ...
0
votes
1answer
114 views

PDO - Duplicate entry on file upload

I'm developing a module that uploads CSV file. /** * Implements hook_menu(). */ function geo_points_menu(){ $items['geo-points-upload'] = array( 'title' => 'Geo points', ...
0
votes
0answers
24 views

Is there a simple way to organize upload files with date?

I am using CKEditor with CKFinder. I know how to change the upload path. But the setting only have "%u"(UID) and "$n"(UserName) token for the upload path. I want to organize the files by date. How can ...
0
votes
0answers
21 views

Files with Term don't show on term page

I'm using the media module and have a term reference field on my file, yet when I go to the term page, it says "There is currently no content classified with this term.". This is only with the File ...
0
votes
1answer
66 views

entity_metadata_wrapper file load

I'm trying to load and get the file using entity_metadata_wrapper. this is my code $wrapper = entity_metadata_wrapper('node',$variables['node']); $file_field= ...