Took a look at the pictures, seems to have gone through a CR/LF
conversion, meaning it's handled as text at some point. Linux and Mac
don't make such distinction so easy to miss if you're not developing
on Windows. I don't have a windows install at hand so can't check it
out further :(

On Mar 27, 7:41 pm, psikahtik <psikah...@gmail.com> wrote:
> Also having the same issue uploading images from admin/ design.
> Using web2py 1.59 in Chrome on Vista. Just trying to upload new layout
> images (.png) and they end up corrupted.
>
> August
>
> On Mar 27, 9:21 am, Doug Cuthbertson <doug.cuthbert...@gmail.com>
> wrote:
>
> > Has anyone else had this problem (uploading images)? Are there any
> > debug settings for web2py or log files it can generate to help
> > determine what's going wrong? If someone can point me in the right
> > direction, I'll be happy to try to analyze/debug my installation.
>
> > Thanks,
> > Doug C.
>
> > On Mar 26, 5:41 am, Doug Cuthbertson <doug.cuthbert...@gmail.com>
> > wrote:
>
> > > I've tested Firefox 3.0.7 and IE 7.0.
>
> > > Regards,
> > > Doug C.
>
> > > On Mar 25, 10:38 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > Which browser? Have you tried more than one?
>
> > > > Massimo
>
> > > > On Mar 25, 3:22 pm, Doug Cuthbertson <doug.cuthbert...@gmail.com>
> > > > wrote:
>
> > > > > Massimo,
> > > > > Yes, I'm uploading from the admin/default/design/TestBlog page. Here's
> > > > > what I've tried:
>
> > > > > web2py: versions 1.58 and 1.59 binary and I even downloaded the source
> > > > > from SVN this afternoon and ran from that with no difference.
>
> > > > > OS: Windows XP SP3 Home Edition, and W2K3 SP2.
>
> > > > > I normally run from binary on a USB memory stick. Just for fun, I
> > > > > tried source on both the memory stick and from the hard drive on the
> > > > > W2K3 system (Python 2.5.4), with no improvement.
>
> > > > > In all cases, I used the default web server (CherryPy, right?) 
> > > > > onhttp://localhost:8000.
>
> > > > > Regards,
> > > > > Doug C.
>
> > > > > On Mar 25, 3:31 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > > > From your email I assume you are uploading the images via the admin/
> > > > > > design page.
>
> > > > > > Which version of web2py are you running? Which OS? binary or source?
> > > > > > Which web server?
>
> > > > > > Massimo
>
> > > > > > On Mar 25, 10:20 am, Doug Cuthbertson <doug.cuthbert...@gmail.com>
> > > > > > wrote:
>
> > > > > > > Massimo,
> > > > > > > Thanks for the reply. When I 
> > > > > > > accesshttp://localhost:8000/TestBlog/static/image2.jpg
> > > > > > > I get an image of the text "http://localhost:8000/TestBlog/static/
> > > > > > > image2.jpg". When I try other images I either get a corrupted 
> > > > > > > version
> > > > > > > of the original image, or I get an image of the URL text. When I 
> > > > > > > open
> > > > > > > the directory "E:\web2py\applications\TestBlog\static", the images
> > > > > > > (image1.jpg and image2.jpg in this case) are there, but either 
> > > > > > > they
> > > > > > > cannot be displayed in an image viewer or they are displayed as a
> > > > > > > corrupted version of the original.
>
> > > > > > > Regards,
> > > > > > > Doug C.
>
> > > > > > > On Mar 25, 10:17 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > > > > > Can you access
>
> > > > > > > >http://localhost:8000/TestBlog/static/image2.jpg
>
> > > > > > > > is it either a typo or the image is not there.
>
> > > > > > > > Massimo
>
> > > > > > > > On Mar 25, 6:24 am, Doug Cuthbertson 
> > > > > > > > <doug.cuthbert...@gmail.com>
> > > > > > > > wrote:
>
> > > > > > > > > Hi Folks,
> > > > > > > > > I'm new to web2py. I've worked through the recipe example in 
> > > > > > > > > the
> > > > > > > > > cookbook and it worked like a champ! I really like being able 
> > > > > > > > > to
> > > > > > > > > create all the parts of a web application via the browser. It 
> > > > > > > > > means
> > > > > > > > > never having to open a console on the web server. Very nice.
>
> > > > > > > > > Next, I tried following the instructions in "how to turn a 
> > > > > > > > > static html
> > > > > > > > > page into a blog in 90 seconds" from the FAQ. All was going 
> > > > > > > > > well,
> > > > > > > > > except that the image didn't display on the 
> > > > > > > > > /TestBlog/default/hello
> > > > > > > > > web page. I've tried both versions 1.58 and 1.59 of web2py. 
> > > > > > > > > Here's
> > > > > > > > > what the source view looks like from Firefox (Ctrl-U):
>
> > > > > > > > > <html>
> > > > > > > > >   <head>
> > > > > > > > >     <title> Welcome to My Blog </title>
> > > > > > > > >   </head>
>
> > > > > > > > >   <body>
> > > > > > > > >     <img src="/TestBlog/static/image2.jpg"/>
> > > > > > > > >     Please say something here!
> > > > > > > > >     </body>
> > > > > > > > > </html>
>
> > > > > > > > > I uploaded a couple of images, so this shows the last attempt 
> > > > > > > > > with
> > > > > > > > > "image2.jpg" as the src attribute.
>
> > > > > > > > > Has anyone seen this kind of behavior before?
>
> > > > > > > > > Thank you for any and all advice.
>
> > > > > > > > > Regards,
> > > > > > > > > Doug C.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to