Questions tagged [drupal-files]
21 questions
6
votes
6 answers
Drupal Filefield won't upload javascript files?
I've got a site where individual pages might require some javascript or CSS files hooked into their heads. I'm trying to keep everything client side when it comes to managing this process, rather than getting on the FTP and sorting everything out in…

MrFidge
- 2,107
- 11
- 40
- 63
5
votes
2 answers
Drupal - Get image from url and import it into node
Im writing a module for drupal, Im trying to create a node from my module, everything is fine , I only have 1 problem with creating an image , The image exist on different server, so I want to grab the page and insert it , I install module…

Ziftion
- 51
- 1
- 3
4
votes
1 answer
Which Drupal 8.1.x Rest API property in the JSON request controls Drupal's File status (Temporary and Permanent) logic?
Which Drupal Rest API property in the JSON request controls Drupal's File status (Temporary and Permanent) logic?
I am trying to upload via Multipart/form-data (i.e. JSON data plus attached [uploaded] file) to Drupal 8.1.x CMS. So far, the upload is…

user2120188
- 427
- 1
- 4
- 16
2
votes
1 answer
Drupal Filefield Source install
Filefield Source is a module which works with CCK and Filefield which allows users to select files from already uploaded files, instead of having them upload a file multiple times.
I installed the module, but cannot see it. I am using CCK version…

John Rand
- 995
- 2
- 10
- 20
2
votes
3 answers
Saving nodes with a filefield
I'm in the progress of creating a bulk upload function for a Drupal site. Using flash I'm able to upload the files to a specific url that then handles the files. What I want to do, is not just to upload the files, but create a node of a specific…

googletorp
- 33,075
- 15
- 67
- 82
2
votes
2 answers
Drupal 7, Only logged in visitors can download
I have a Drupal 7 site that has downloadable resources (PDF files) in blocks that need to be visible to all visitors, but only available for logged in visitors to download. How can I accomplish this?
Any advice is great appreciated.
Thanks!

DataGuy
- 1,695
- 4
- 22
- 38
2
votes
2 answers
File field is showing that my previously uploaded files are 0 bytes
Got a bit of a weird issue here. I recently started doing maintenance on a website that I did not originally build. The Drupal site has a bunch of nodes with an audio file field, and a jQuery player that plays them. On a lot of the nodes the player…

Dustin
- 4,314
- 12
- 53
- 91
1
vote
1 answer
Making Drupal's FileField output HTML5 compliant
I'm trying to remove the "size" attribute from Drupal's FileField output. Right now, it outputs a tag like this:
I tried a number of permutations of using…

J B
- 390
- 1
- 4
- 16
1
vote
0 answers
AJAX Upload and Sort like Drupal
I'm developing for Drupal, and I need a script from the Internet that is similar to the FileField module (http://drupal.org/project/filefield/).
This FileField module can be attached to a node, and it enables the user to upload files via AJAX. There…

Scott
- 11
- 1
1
vote
1 answer
I can't upload files after migrating a Drupal site to a new server
We have a content type with two imagefield / filefield fields, and after migrating our site to a new server, we have the following problem:
When we submit a new item for this content type, with two images for those fields, drupal gives us the…

agente_secreto
- 7,959
- 16
- 57
- 83
1
vote
1 answer
Drupal7 copy filefield to another node at submit
I have a content type that has unlimited filefield fields in addition to other fields. At node save/submit I would like to create an additional node for each file in the field, and assign that filefield to it. I'm fine with the nodeapi hooks and…

James Norman
- 11
- 1
0
votes
2 answers
In Drupal 7, errors for file_managed field remain even when fixed
I've been beating my head over this one and can't figure out how to solve it.
I have a content type with an image field, and I've set minimum dimension requirements for the field. The form to create or edit nodes of this type includes a field of…

user724228
- 13
- 2
0
votes
1 answer
Drupal 6: How to implement a hook?
I'm working with Drupal 6 and the filefield module.
I created a simple form to upload an image to the server. I want to rename the file before it gets uploaded. I noticed that inside the field_file_save_upload function, it is mentioned that…

jdecuyper
- 3,934
- 9
- 39
- 51
0
votes
1 answer
Drupal uploading files with File (Field) Path module settings
This is my setup:
Content type Media contains next fields:
"Audio" filed with upload directory to: media/books (Audio field is provided by Audiofiled module)
"Book" field term reference
The "Book" vocabulary contains plus one text field called…

old-willow
- 111
- 1
- 12
0
votes
2 answers
Fetch image from specific directory in drupal
I'm beginner in drupal. I would like to fetch images from specific folder in drupal. Is there any way to fetch drupal images directly from any specific in custom theme.

Menon Jats
- 317
- 3
- 14