Re: Problem uploading image in local wiki

2010-04-18 Thread Alexander Burger
Good morning Jon, > > Does it return something like "image/jpeg; charset=binary"? > > No, I get just "regular file", both for the .d files and for .jpg files. > > If I use "file -bI" instead, I get "image/jpeg". That's what I suspected. The 'file' command behaves different on Linux and Mac (-bI

Re: Problem uploading image in local wiki

2010-04-18 Thread Jon Kleiser
Hi again, Alex. > Hi Jon, > >> > Really? In the generated HTML code? E.g. if you view the page source >> in >> > your browser? >> >> Yes, there's no tag in the generated page source, just the >> "MyImg" as plain text where the tag should have been. > > OK, then I it was indeed the case that the '

Re: Problem uploading image in local wiki

2010-04-18 Thread Alexander Burger
Hi Jon, > > Really? In the generated HTML code? E.g. if you view the page source in > > your browser? > > Yes, there's no tag in the generated page source, just the > "MyImg" as plain text where the tag should have been. OK, then I it was indeed the case that the 'file' command on the Mac did n

Re: Problem uploading image in local wiki

2010-04-18 Thread Alexander Burger
Hi Jon, > This far I can see no difference. I copied the entire db/wiki/ from my > previous picoLisp installation to the new one. I'm afraid that's how far > I'll come today. Maybe I'll find some time tomorrow. This I understand now, as the file extension was not the problem. The changes fixed t

Re: Problem uploading image in local wiki

2010-04-18 Thread Jon Kleiser
Hi Alex, > On Sun, Apr 18, 2010 at 02:20:34PM +0200, Alexander Burger wrote: >> Actually, the culprit is the 'http' server function. It sends a mime >> type of "application/octet-stream" (as can also be seen in the output of >> 'trace' in my previous mail) if the file extension is not in '*Mimes'.

Re: Problem uploading image in local wiki

2010-04-18 Thread Jon Kleiser
Hi Alex, > Hi Jon, > >> I've changed my mind: I think this is a PicoLisp wiki problem. ;-) > > Yes, it must be somehow. > >> After all, I have successfully uploaded a wiki logo and a picture of >> myself to my local wiki. It's just the embedded ones, <{...} and >{...}, >> I >> have problems with.

Re: Problem uploading image in local wiki

2010-04-18 Thread Alexander Burger
On Sun, Apr 18, 2010 at 02:20:34PM +0200, Alexander Burger wrote: > Actually, the culprit is the 'http' server function. It sends a mime > type of "application/octet-stream" (as can also be seen in the output of > 'trace' in my previous mail) if the file extension is not in '*Mimes'. OK, I found a

Re: Problem uploading image in local wiki

2010-04-18 Thread Alexander Burger
On Sun, Apr 18, 2010 at 01:39:33PM +0200, Alexander Burger wrote: > Too bad! What's the correct way to handle this? Actually, the culprit is the 'http' server function. It sends a mime type of "application/octet-stream" (as can also be seen in the output of 'trace' in my previous mail) if the file

Re: Problem uploading image in local wiki

2010-04-18 Thread Alexander Burger
On Sun, Apr 18, 2010 at 01:26:39PM +0200, Alexander Burger wrote: > The difference may be that the logo and the picture in the +User object > have the "correct" file extension. In case of the logo it is ".png", and > for the user picture it is ".jpg". > > In case of the (embeddedable) blobs it it

Re: Problem uploading image in local wiki

2010-04-18 Thread Alexander Burger
Hi Jon, > I've changed my mind: I think this is a PicoLisp wiki problem. ;-) Yes, it must be somehow. > After all, I have successfully uploaded a wiki logo and a picture of > myself to my local wiki. It's just the embedded ones, <{...} and >{...}, I > have problems with. The difference may be t

Re: Problem uploading image in local wiki

2010-04-18 Thread Jon Kleiser
Hi Alex, > Hi Jon, > >> I have also tried this with Firefox on Mac. No image showing there >> either. >> ... >> I believe this probably isn't really a PicoLisp wiki problem. I've changed my mind: I think this is a PicoLisp wiki problem. ;-) After all, I have successfully uploaded a wiki logo and