Modify

Opened 17 years ago

Last modified 17 years ago

#2620 assigned enhancement

patch for limiting upload file size

Reported by: Mario Owned by: Petr Škoda
Priority: normal Component: TracDownloaderPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Small patch which adds file size limiting.

Attachments (2)

limit_file_upload_size.patch (4.1 KB) - added by Mario 17 years ago.
permission.patch (1.0 KB) - added by Mario 17 years ago.

Download all attachments as: .zip

Change History (4)

Changed 17 years ago by Mario

comment:1 in reply to:  description ; Changed 17 years ago by Petr Škoda

Status: newassigned

Hello,

thanks for your contribution. At this moment I'm not quite sure if this is exactly what is needed but I htink I will add this patch into next releases. The thing is that into adminstration of files should be allowed access only for administrators and not for users. But if max_filesize stays configurable only in config file, it could be useful for some people...

Thanks a lot!

Replying to mwehr:

Small patch which adds file size limiting.

Changed 17 years ago by Mario

Attachment: permission.patch added

comment:2 in reply to:  1 Changed 17 years ago by Mario

Replying to peca:

Hello,

thanks for your contribution. At this moment I'm not quite sure if this is exactly what is needed but I htink I will add this patch into next releases. The thing is that into adminstration of files should be allowed access only for administrators and not for users. But if max_filesize stays configurable only in config file, it could be useful for some people...

Thanks a lot!

Replying to mwehr:

Small patch which adds file size limiting.

Hi

I solved the file size limit admin problem by allowing only trac_admin to change the "settings"
see permission.patch.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Petr Škoda.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.