Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to restrict users from loading a bitmap file attachment to a jira issue?

Hi,

We are running on Jira 4.4. I need to know what is the allowable maximum file attachment size in Jira that wont impact the performance.

Also attachments of type jpeg,bitmap and png is allowed ; how to customize and restrict from users uploading file attachment to a jira issue to only jpeg and png?

Thanks

Velavan

1 answer

0 votes

I don't think there's much of a maximum size internally. There are two performance impacts to uploading large files

  • There's a network hit when you upload or download the files
  • If you have set up indexing on attachments (via a plugin - I don't think it's been included in the core yet), then Jira will have to read and index the entire file.

To prevent uploads of the "wrong" file type is more problematic. You'll need to amend the core of Jira so that it checks the type of file by reading it's header and throws back an error to block incorrect types. I've used a number of systems that try to be "clever" and stop people uploading files by checking the file extension alone, which is utterly useless because people simply change it, and it's become an even worse idea as most software now reads the headers anyway. So a bitmap saved as .jpg is opened, read and displayed fine, because the extension is irrelevant.

I'd suggest the most simple solution is to set a relatively low attachment size on your system, and then people trying to upload uncompressed images will simply find them to be too large.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Industry Groups

🤖 A Jira Senior Developer's thoughts on remote pair programming

Hello, Tech enthusiasts! Are you ready for October to begin 🙀? I wanted to share with you an Article I came across from Work/Life (The Atlassian blog) from  a senior developer on the Jira te...

30 views 1 2
View post

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you