Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [files]

Use it to generally reference to those files used on websites which could be video, images, pdfs, etc.

4
votes
0answers
261 views

Image styles are not generated in Docker for Windows

When I open in browser http://localhost:1567/sites/default/files/styles/thumbnail/public/2017-10/478069720_1384178114_4.jpg, I see 404. The "original" images are uploaded successfully, and the ...
3
votes
0answers
73 views

How do I use hook_entity_access() to let anonymous users upload private files?

I have same issue described in How to skip the ReferenceAccess constraint on a file upload by an anonymous user? So I need to use hook_entity_access() or hook_ENTITY_TYPE_access() to solve the issue. ...
3
votes
0answers
613 views

Error saving custom field type module with “managed_file”

I have created a custom field type module (field plugin) containing four fields: title, description, address, image. Drupal version: 8.02 This is the schema structure inside FieldType php file: ...
3
votes
0answers
316 views

Is there any way to add a file field for multiple upload file to a custom form?

I'd like to add a file upload widget to a custom form, with core file module, as shown in the admin edit node page. I've trying with the 'managed_file' API, but I've only got upload one file. I need ...
3
votes
0answers
732 views

Unzip a file in Drupal 7 Form API and upload extracted files

I'm creating a custom form using Drupal 7 Form API, and I need my users to be able to select a ZIP file containing a number of other files. I'd like to be able to extract the files and then upload ...
3
votes
0answers
4k views

“View private files” permission not effective

I have 3 users, an administrator, an uploader, and a viewer. The uploader has a file field attached to his profile and the destination folder of the uploaded (in my case .pdf) file is set to the ...
3
votes
0answers
674 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 direct.mysite....
3
votes
0answers
1k views

How to set up permissions while using dso as PHP handler?

I'm having all kinds of troubles while setting up my site online. I can't upload new modules and if I try caching this is what I get: Warning: file_put_contents(temporary://filedwZLkV) [function....
2
votes
0answers
61 views

How can I create an alias to point to an uploaded file?

Users uploading a file within content create a name like my_site.com/sites/default/files/import/CrazyLongNamefile.pdf They would like to alias it for referencing in other media (print) like my_site....
2
votes
0answers
653 views

Drupal 8 Private file is accessbile by anonymous user

I have created a content type with file field and set Upload destination is private files. I have also set the $settings['file_private_path'] = '/path/to/private'. But the file is accessible by ...
2
votes
0answers
462 views

How do I add an #ajax callback to File field form widget?

I have a content type with a file field: field_file_field . I want to attach a custom #ajax callback to the widget which will execute after file upload. I have tried with: $ajax_settings = array( ...
2
votes
0answers
140 views

wysiwyg module and imce missing upload button

I am attaching an image....i have wysiwyg module with cke library and also imce module and imce bridge module. When I click browse to upload images, i get a nonfunctioning screen....It does not work ...
2
votes
0answers
62 views

Using Views without Database Support

We build a Drupal 8 based content management system that uses a triple store as the main data back-end. So we don't have any content data in Database tables. All CRUD operations on entities stored ...
2
votes
0answers
67 views

Private files broken

I just moved a site to another server (Windows IIS 8.5). Public images are working perfectly, but private images seem to be broken. By having a look at the browser's inspector, I can see that when I ...
2
votes
0answers
25 views

Getting a node-uniqe identifier such as node id or path as replacement pattern at node creation

I have a content type which consists of a large text field and a number of file fields. Users are allowed to /node/add instances of this content type and are then expected to upload all relevant files ...
2
votes
0answers
834 views

How to upload my video using Video module and CKEditor?

I'm trying to upload my custom videos to my Drupal 7.28 site. I want to add videos in my most of the posts or pages. I've installed the Video module and also have CKEditor module working. Is there ...
2
votes
0answers
63 views

Add a confirmation step on file upload

I'm trying to add a confirmation step when I upload a file (file_entity). After I upload a file that exists already on the server, I want the user to be asked if he really wants to replace the ...
2
votes
0answers
191 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?
2
votes
0answers
32 views

Thumbnail directory name

I'm creating a video hosting website, the thumbnails are uploaded manually, because i couldn't configure ffmpeg because of shared hosting. I would like to retrieve a videos thumbnail from the server, ...
2
votes
0answers
430 views

How to populate a managed file field with ajax

Problem I have a large form with a select field tied to an ajax call. When an option is selected a large chunk of the form is rebuilt and a number of fields re-populate. All the fields pre-populate ...
2
votes
0answers
255 views

Video Embed Field module - how do I add attribute 'id' to the embed youtube iframe?

The question is related to DRUPAL modules name is 'Video Embed Field' module. The default output of this module generated the Youtube iframe embed as set in the config by Administrator. But... The ...
2
votes
0answers
59 views

“managed_file” type element not showing in my custom block configure form

I have been creating a portfolio section for my one page theme and I created a module for these section blocks. Now, I'm using the hook_block_configure to set the data into the blocks. Only 1 "#...
2
votes
0answers
135 views

Default file upload for a field created in content type

In Drupal7 we have an option to upload an "default image" while creating a "Image field" in content type. Likewise, I need to know is there is any option to add default "pdf or text file" for "File ...
2
votes
0answers
82 views

Problem with “drupal_add_js”: Conflicts ShareBar module with IMCE popup

I have installed ShareBar module (https://www.drupal.org/project/sharebar) at my drupal 7 site. Unfortunately it caused that on IMCE popup (when we can upload images) doesn't appear buttons for files ...
2
votes
0answers
105 views

Video Embed Field: Pull in Original Title & Description

I'm using the video embed field in Drupal 7. I'd like to pull in the original title/description from youtube/vimeo, and then have an (optional) additional user description field. How do I get it to ...
2
votes
0answers
552 views

Colorbox You tube video

I am using Youtube module and colorbox. I have a content type with a youtube thumbnail in the teaser. If you click on it, I would like it to open in a colorbox with dimensions 420x315. Instead it ...
2
votes
0answers
180 views

ckeditor or drupal keeps adding closing source tag /> at the end of <source> tag. Using Video Plugin for ckeditor

I am using the ckeditor for drupal and the video plugin for it to embed video's to site. I have tried to edit the Video plugin javascript file like below so it will spit out something like this <...
2
votes
0answers
41 views

Bad experience: PDF to ImageField and similar Drupal modules

I can not make them work (PDF to ImageField, PDF Preview and PDFThumb), No errors, no status report messages. Simply it doesn't show the preview as it should.
2
votes
0answers
63 views

Advice for Image Management with New Site

I am looking for the best image management options for a new Drupal site. The original site has several thousand images, and a dynamic site is expected to explode that number to tens of thousands. I'...
2
votes
0answers
60 views

Can Colorbox browse admin/content/media from Media rather than file uploads?

Is it possible to configure Colorbox for Drupal D7 to use content already stored by the Media module (in admin/content/media) rather than use a file upload? The alternative is either: Upload ...
2
votes
0answers
160 views

Injecting field data in a custom entity

I have created a custom fieldable entity. Now I want to inject the field data into the entity and render the complete entity with the fields. The following code is working for text fields and ...
2
votes
0answers
385 views

How to add multiple meta tags with the same property?

I'm trying to set up OpenGraph tags on a page containing a video. I'm currently setting up the usual sorts of <meta property="og:video"...> tags with calls to drupal_add_html_head(), and that's ...
2
votes
0answers
658 views

When using Views slideshow with videos I cannot get the slideshow to stop in order to play the full video

I have created a slideshow with images and videos using Views Slideshow. I slide through the content of a content type that has images and embedded youtube videos (using the youtube module). I have ...
2
votes
0answers
190 views

“Upload Images” tab blank when adding media

I have successfully updated my Drupal 7.24 site to use Media 2.x dev (2014-Mar-19) and Media Gallery (2014-Feb-26). The existing galleries are displayed perfectly. The only issue I'm facing is that ...
2
votes
0answers
144 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 'myurl.com/post/...
2
votes
0answers
513 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 ...
2
votes
0answers
72 views

Migrating youtube id from a csv file

I have a content type called video with two fields, title and youtube id. Im migrating content to the site using csv files however every time I migrate the youtube id field is always empty. The field ...
2
votes
0answers
2k views

How to embed a mp4 file in the body field?

Just that. I need to embed a mp4 file in the body field of a node. I'm pretty sure I can do this with the media, ckeditor and wysiwyg modules. But I just need to embed one video in the entire site, ...
2
votes
0answers
2k views

One-click Download files from webform submission

I have content editors who need a 'one click' download solution for all the files uploaded with a given webform submission. FTP is not an option. Does anyone know of any solution for this?
2
votes
0answers
946 views

Adding title to file field in a content type

I am making a change to an already existing site. There is a content type called lesson, and one of its fields is called 'File'. It is being displayed using the "Generic File" format in the content ...
2
votes
0answers
184 views

How can I change the file saving process to wait until file changes have been synchronized on all servers?

We have a site load balanced behind three servers, and we are using lsync and csync2 to replicate file changes across the servers. In the past we used a GFS system to handle this, which worked great ...
2
votes
0answers
334 views

Issue with download large file from private_files

I need to distribute large files (say about 1GB or more) in a private_files sections because I do not want unauthorizes download of those files. However when downloading a file of 1GB from our ...
2
votes
0answers
1k views

Uploading images gives a “403 Access Denied” error

I just updated my site from 7.10 to 7.22 and now I am getting a Access Denied error on images that i'm uploading. My files folder is already 777 and everything else in there. Anyone know how to ...
2
votes
0answers
195 views

List files from distant FTP Server

I'm brand new to the Drupal universe, and I'm stuck on something too big for me ^^ I need to create a View or a Content Type that will list files from a distant FTP Server and provide download link ...
2
votes
0answers
56 views

How can I have a video pop-up when a user logs into my site for the first time?

I have a website using Drupal 7. I would like a video tutorial to pop up when a user logs into the site for the first time. How can I do this?
2
votes
0answers
64 views

Node Media Help

I want to add media to my node. I have installed Media 2.x, Media Multiselect and Plupload modules and I can upload multiple items to but unfortunatley I cannot insert multiple items to my File field. ...
2
votes
0answers
121 views

Sync Alt and Title values from CCK imagefields with media module file fields

I have a situation where I really need to access the alt and title values of an image on a node. I can retrieve these values in a node View, but in a file View these values are not accessible as they ...
2
votes
0answers
36 views

How to trace menu links not linked to a node in views

I am using drupal 7.18 + views 7.x-3.5 + menu node views 7.x.1 I managed to make blocks of the children of the active menu item, using views and menu node views based on the menu node id contextual ...
2
votes
0answers
153 views

D7 Image Field Paths - Using a custom Path for Each Image Style

I am looking to have an image get dynamic name for each style that is generated by the system. Currently I am using tokens to generate an md5 hash for the file name, but for each style (eg small/med/...
2
votes
0answers
89 views

Have all internal links in drupal leave out subdirectory where docroot resides

I've successfully followed some instructions online to get our plain url to direct to the content found in a subfolder (drupaldev) so that when you enter any url for that site even without the ...