dubeaud / bugnet

BugNET is an open source issue tracker built with .NET
189 stars 166 forks source link

How to add file attachment #157

Closed rushdan closed 8 years ago

rushdan commented 8 years ago

Hello Support,

I would like to attach image when create a new Issue but I won't . How to do that ? how to add attachment

Thanks

dubeaud commented 8 years ago

I believe you can just drag and drop an image to the editor and it will embed the image as base64. On Oct 21, 2015 4:01 AM, "rushdan" notifications@github.com wrote:

Hello Support,

I would like to attach image when create a new Issue but I won't . How to do that ? [image: how to add attachment] https://cloud.githubusercontent.com/assets/6026860/10630904/e5f8a592-780c-11e5-8d5e-4f643428f607.png

Thanks

— Reply to this email directly or view it on GitHub https://github.com/dubeaud/bugnet/issues/157.

rushdan commented 8 years ago

Thanks for reply.

I have see the button Choose File to upload . I have upload attachment and save. But when I see the issue in details, the image cannot view.

button attachment

In configuration, I have set the format image can be upload. But still not display the image

attachment settings

Thanks.

Hope can help me to solve this issue.

From Rushdan

dubeaud commented 8 years ago

If you uploading an image that way it will show under the attachments tab on an issue. The alternative is to drag and drop it to the issue description editor to add it inline with your text. On Oct 21, 2015 10:30 PM, "rushdan" notifications@github.com wrote:

Thanks for reply.

I have see the button Choose File to upload . I have upload attachment and save. But when I see the issue in details, the image cannot view.

[image: button attachment] https://cloud.githubusercontent.com/assets/6026860/10655493/c7dd7218-78a7-11e5-891a-5b2a79095c98.png

In configuration, I have set the format image can be upload. But still not display the image

[image: attachment settings] https://cloud.githubusercontent.com/assets/6026860/10655496/cd751776-78a7-11e5-95a5-84c74460f52e.png

Thanks.

From Rushdan

— Reply to this email directly or view it on GitHub https://github.com/dubeaud/bugnet/issues/157#issuecomment-150087222.

rushdan commented 8 years ago

I see the attachment tab.

Then, I upload the image and press Add Attachment button. The error come out

error when add attachment

There was an error saving the attachment listing complete status only.png.

I dont know what does it error mean ?

Could you tell me about this ?

Thanks

rushdan commented 8 years ago

Hello support,

I testing again. I create the issue to myself. Add the attachment then save. No attachment view in attachment tab.

Please help how to solve this.

Thanks

dubeaud commented 8 years ago

You can possible get more details from the error log in BugNET found in the administration panel. If the image is larger than 2mb increase the size validation in the settings. If it is larger than 4mb you have to change the http max request length in the web.config. On Oct 22, 2015 7:29 AM, "rushdan" notifications@github.com wrote:

I see the attachment tab.

Then, I upload the image and press Add Attachment button. The error come out

[image: error when add attachment] https://cloud.githubusercontent.com/assets/6026860/10664110/1fce2fb2-78f3-11e5-8761-cc3d9e6dfffc.png

There was an error saving the attachment listing complete status only.png.

I dont know what does it error mean ?

Could you tell me about this ?

Thanks

— Reply to this email directly or view it on GitHub https://github.com/dubeaud/bugnet/issues/157#issuecomment-150188273.

rushdan commented 8 years ago

You can possible get more details from the error log in BugNET found in the administration panel.

I log-in as administrator. No error found in the administration panel but error still occur.

log viewer

If the image is larger than 2mb increase the size validation in the settings.

My image file size just 7KB but it still fired the error even the attachment setting has set limit for 2MB only

attachment size limit

Hope this help to solve this issue.

Thanks

energywave commented 8 years ago

I had problem with attachments too and now I'm using them correctly so maybe I can be of help. Please note that extensions are case sensitive (PLEASE FIX THAT!!!) so I repeat every extension in lowercase and uppercase. Having said that the only format in wich I managed to use the attachment is by specifiying allowed extensions using this format (copy - paste from my list): .jpg;.JPG;.png;.PNG;.txt;.TXT;.sql;.SQL;.log;.LOG;.ini;.INI;.bmp;.BMP;.doc;.DOC;.docx;.DOCX;.pdf;.PDF;.xls;.XML;.zip;.ZIP;.7z;.7Z;.xlsx;.XLSX;*.XLS Hope this can help.

rushdan commented 8 years ago

Thanks for your help.

Having said that the only format in wich I managed to use the attachment is by specifiying allowed extensions using this format (copy - paste from my list): .jpg;.JPG;.png;.PNG;.txt;.TXT;.sql;.SQL;.log;.LOG;.ini;.INI;.bmp;.BMP;.doc;.DOC;.docx;.DOCX;.pdf;.PDF;.xls;.XML;.zip;.ZIP;.7z;.7Z;.xlsx;.XLSX;*.XLS

I follow your way but still has an error.

energywave commented 8 years ago

Sorry, having pasted my extensions list asterisk characters was removed from the string. I'll attach a screenshot of the field so that you can understand how I inserted the string. Let's try this.

estensioni

rushdan commented 8 years ago

I'll attach a screenshot of the field so that you can understand how I inserted the string. Let's try this.

I have try example as yours but still get the error. I cant upload the attachment. And the file size is below 50K

addsterisk

rushdan commented 8 years ago

sorry, this issue is still open. I can't solve it.

dubeaud commented 8 years ago

Are you using file system or database attachments?

What is the error in the error log? On Nov 11, 2015 9:24 PM, "rushdan" notifications@github.com wrote:

sorry, this issue is still open. I can't solve it.

— Reply to this email directly or view it on GitHub https://github.com/dubeaud/bugnet/issues/157#issuecomment-155976966.