BugNET

Open source issue tracking & project management
Welcome to BugNET Register | Login |

BugNET Forums

 
  Forum  Development  General develop...  Attachment Change
Previous Previous
 
Next Next
New Post 9/23/2006 2:44 PM
User is offline swildermuth
1 posts
No Ranking


Attachment Change 
I am happy to make this change and submit it to the project (I downloaded the code, but it seems to be the source of a previous version not the VS 2005 version). My issue is that duplicate attachment filenames cause duplication.  What i'd like to do is add code that changes the name to a bug#/Date prefix to solve this issue.  Storing the images in the database is also an option I've seen asked for, but for a quick fix to a nasty problem I can add this code in mere minutes to solve most of the duplication issues (including reporting that a duplicate name was found instead of overwriting which is what it does today).
 
New Post 9/25/2006 4:16 PM
User is offline jbb
11 posts
No Ranking


Re: Attachment Change 
This issue should be fixed in current version in SVN.

Thanks for info anyway.
 
New Post 12/14/2006 7:38 PM
User is offline Odiggity
26 posts
No Ranking


Re: Attachment Change 
I've downloaded the v190 from SVN out of curiosity of how it works (SVN, downloading, etc..) and was reviewing this change of dup file names/overwriting. Not sure if I'm the only one, but when adding a new issue, filling in all the information, click Add Attachment, select attachment/description, click Submit and the attachment goes blank, as if weren't there. Attach it again, and it gets submitted with the attachment.

2 problems arise from this:
1. Not sure if it's every time, but there are two duplicate issues, one without the attachment and then another with the attachment.
2. The attachment name is something along the lines of 0055_bob.txt on disk, but is not in the database. Opening/deleting fail at this point.

On a side note, subsequent saves of the same file would be saved as 55_bob.txt, 55_bob1.txt, etc. These with open and delete just fine. Anything suggestions? I've posted before and I'm not the greatest coder in the world, but I'm more than willing to toss something out there as a suggestion. I hope I'm not posting this in the wrong area(s) or making suggestions out of turn.

Regards, Mike
 
New Post 12/14/2006 8:19 PM
User is offline admin
658 posts
bugnetproject.com
1st Level Poster




Re: Attachment Change 
Hi,

The reason you have to select the file twice is because the asp.net file upload control is not support in an AJAX update panel. I will be removing the update panel so that this works properly.

I will take a look at the other issues you are having.

Davin Dubeau
BugNET - Core Developer

 
Previous Previous
 
Next Next
  Forum  Development  General develop...  Attachment Change

Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.