Modify

Opened 6 years ago

Last modified 6 years ago

#2620 assigned enhancement

patch for limiting upload file size

Reported by: mwehr Owned by: peca
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 mwehr 6 years ago.
permission.patch (1.0 KB) - added by mwehr 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by mwehr

comment:1 in reply to: ↑ description ; follow-up: Changed 6 years ago by peca

  • Status changed from new to assigned

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 6 years ago by mwehr

comment:2 in reply to: ↑ 1 Changed 6 years ago by mwehr

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.

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.