Static files used on websites which could be video, images, pdfs etc.
0
votes
0answers
15 views
How can I control file renaming behavior of Drupal 7 Webform file uploads?
I'm a drupal newbie so excuse me if I'm using the incorrect terminology or my description is not very clear. I have a webform with a file upload field using the File widget. I upload files for users ...
0
votes
1answer
21 views
How to assign value from one file field to another programmatically?
I have a webform which have a file field. In the user profile I have also created a file field.
I am using the webform for user registration So I am assigning the values from the webform to the user ...
0
votes
0answers
9 views
Create directory in file system per organic group
I am using Drupal 7 and I am creating a content type which is a content of an Organic Group. This content type has a file field and all the Organic Group Members can create a node of that. I want to ...
0
votes
1answer
19 views
How to save an uploaded image in an admin form?
I wrote the following module to upload a background image. My problem is, that my submit function is not called, though the pic is uploaded and showed in the block until the next cleanup is coming.The ...
0
votes
1answer
23 views
Transliteration- Is it possible to transliterate filenames (and update the DB) after files have been uploaded?
I have a website that allows users to upload pictures. To reduce the amount of space used by pictures files on my site, I attempted to use a script to remove orphaned files. However, this script ...
0
votes
1answer
18 views
Appending output to a file?
I am developing a custom module and I want to write debugging output to a log file so I can monitor it in real time, and not wait to navigate to watchdog.
I was using file_save_data() to write to ...
0
votes
0answers
12 views
Change upload action for file field
I am developing a custom form that will upload a file to a .aspx file, which will then run a process on it. From looking at the default Drupal form, there is a 'submit' input type which is next to the ...
1
vote
1answer
24 views
Make download available after purchase of a physical good
I am running a UC Shop with Drupal which sells CDs and LPs and most of the time everything works like it should do.
Now I want to improve the service for our customers. For this reason, I want to ...
2
votes
1answer
22 views
audiofile throwing error on file size even though settings changed
An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (2 MB) that this server supports.
Every time try to upload 8mb mp3 I get the above error even though have ...
0
votes
0answers
17 views
Migrate d2d picture migration destination path incorrect
I'm in the process of building a migration module for a d6 to d7 migration using the d2d module.
I'm almost there, but one thing that's holding me back is the DrupalPicture6Migration. After trial and ...
1
vote
3answers
73 views
How to get images into a slideshow via json javascript with new itok
I have just updated to drupal 7.21, and I have massive errors with the new itok suff: Right now I use json_encode(views_get_view_result('viewsitem')), and decode the result with JSON and JavaScript. ...
0
votes
0answers
18 views
Large number of orphaned records in image_dimensions table in Drupal 7
I have over 40k worth of orphaned records in the image_dimensions table in my drupal 7 installation. i cross referenced alot of these records to see if they exist in my files folder and many of them ...
0
votes
0answers
25 views
D7 Organic groups and securing private files
I'm looking for a current solution for private file protection in D7 (so files uploaded without a node can be hidden from unauthorized users). I saw this question, organic groups and private files, ...
0
votes
1answer
19 views
Validating extensions in file uploads
I am trying to create a file validator for .csv uploads. This is my code that works at allowing csv uploads (which are disallowed by default):
$validators['file_validate_extensions'] = array('csv');
...
0
votes
0answers
38 views
How to use PDFPreview in Media's File Type display settings?
I'm using the PDFPreview module (slightly hacked, see this issue) to display thumbnails of PDFs uploaded to a filefield. However, that same filefield can hold other kinds of files (images, embedded ...