Page 1 of 1

Images are not displayed when download file

Posted: Thu Oct 11, 2012 3:35 pm
by pttdsth
I'm trying to download a file that contains images with svnwebclient\fileDownload.jsp and the images are not displayed correctly. They were shown as big red 'X' marks. Can anyone tell me what is the proper way to open/download a files that contain images? Thanks

Re: Images are not displayed when download file

Posted: Fri Oct 12, 2012 7:52 am
by NickEntin
Hi,

I'm not sure I understand what you want to achieve.

Let's say you have 2 files in your repository:
a.html
and
b.jpg

The first refers to <img src="http://mysite.com/b.jpg"/>

Even if you download a.html and b.jpg and open first one in a browser - you'll see big cross unless b.jpg is uploaded to mysite.com in specified location.

Of course SVNWebClient knows nothing about relation of the files.

Best regards,
Nick

Re: Images are not displayed when download file

Posted: Thu Dec 11, 2014 7:18 am
by Fedral144
I have discovered a compatibility issue for Firefox 3. Seems that the value of tag <input type="file"> is different. It doesn't contain the full path, just the file name without path. It would cause the file update page's file name checking javascript to fail. (To be exact, it would be svnwebclient/include/dialog/fileUpdateContent.jsp, that is, uploading a new version of an existing file). It assumed it is a full path which either contains "/" or "\".) I have to modify the source code to cope with this issue.