What is the "proper" way to manage user upload limits

I have had a feature request for flash node to put upload limits in to control how much a user can upload in a single file, and in total - basically what the upload module does for other files.

I was going to lift the code from upload, mod it slightly to use a separate set of variables, and use that for flash node, but when I went looking behind the scenes I got a bit confused.

Flash node calls file_save_upload, and I can ask it to use file_validate_size to check limits. However, file_validate_size then calls file_space_used to work out how much the user already uploaded. That function tots up *everything* the user uploaded, not just files of a specific type or criteria (aside - does it? the code looks like it tries to do a user specific check if the uid is null and returns the total if a uid is given??)

Anyhow, if I supply a total upload limit specifically for flash node the limit might be reported as exceeded as a result of the user uploading other things in other modules. That implies to me that the upload maximum is a "global" setting since it is the total of all files that have been placed in the {files} table.

Create array from db table for fapi "select"

Hi there,

In my database i have created a table with the following data:

id fruit color
1 apple green
2 banana yellow
..........

Now I have created a form with drupals forum api and added a select option.
With this select option i want to be able to select apple or banana or .... and after submitting the form it should store the id in another table. I know the select should be linked to an array but im not quite sure what would be the best/easiest way to fill this array with the 2 fields in the table.

I have no idea how to go about this, page designed in photoshop, begging for help =[

Hi everyone. I'm new to using drupal, and I designed this look for a site "http://www.oneiros-island.com/helpmeplease.jpg". I was wondering if it's possible to even use it with drupal, and if so how? I don't know much at all about css... The last site I made I just used the export html thing on photoshop, and for the content I think I used iframes. Which I know is a really bad idea. This time I want to do it the right way... Can someone help point me in the right direction or let me know if it's possible?

Contact form sends HTML

hi,

using Drupal 6 and nicEdit (and Gmail)

Somehow the Contact Form comes with HTML:

hello!
ho are you?

Is it in Drupal, or nicEdit, or Gmail?
And what can I do in order to prevent this and send only plain text?

Thanks!

Can't set database host with Konqueror on Drupal 6 RC2

Hello everyone,

when installing Drupal 6 RC2, Konqueror 3.5.5 is unable to expand the "Advanced options" pane on the installation page. Is this a known/interesting issue and where would I report it? I'm not too familiar with Drupal bug tracking...

Many thanks in advance!

Upgrade from 6.0 RC2 to 6.0 Stable

Hey all. i am new to drupal....I used joomla for 1,5 years... but 2 weeks ago installed drupal 6.0 rc2...and was amazed by flexibility and ability to make many customizations.

The question is if I install the RC2 to a production site...and when RC3 will be shipped or later 6.0 Final - won't it be a problem of online upgrade of the site from RC2 to Stable version ?

And when approximately the stable release will be shipped?

Thanks a lot for your responses.

Roman

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x