Willow-Seaside serving static files
Hi, I added an image to a subclass of WAFileLibrary to serve it as a static file from within Pharo. Everything seems fine, except that the /files URL is not accessible: Error: you are forbidden to access "/files". and source view displays /files/EMStaticFiles/window.png not found if I click on image's URL. I loaded Seaside as a Willow's dependency. Best wishes, Tomaz
The handler at /files (WAFileManager?), is set to explicitly forbid listing of files. El dom., 14 de junio de 2020 07:33, Tomaž Turk <tomaz.turk@ef.uni-lj.si> escribió:
Hi, I added an image to a subclass of WAFileLibrary to serve it as a static file from within Pharo. Everything seems fine, except that the /files URL is not accessible:
Error: you are forbidden to access "/files".
and source view displays
/files/EMStaticFiles/window.png not found
if I click on image's URL.
I loaded Seaside as a Willow's dependency.
Best wishes, Tomaz
Thanks, Esteban. I checked the url of the image (http://localhost:8080/files/EMStaticFiles/window.png) and it is proper, however it is not accessible (I get /files/EMStaticFiles/window.png not found), so I believe that besides forbidden listings the access to files is also forbidden. I'm looking into WAFileHandler class however cannot find a way to enable serving of static files. Best wishes, Tomaz ------ Original Message ------ From: "Esteban Maringolo" <emaringolo@gmail.com> To: "Tomaž Turk" <tomaz.turk@ef.uni-lj.si>; "Any question about pharo is welcome" <pharo-users@lists.pharo.org> Sent: 14.6.2020 15:33:23 Subject: Re: [Pharo-users] Willow-Seaside serving static files
The handler at /files (WAFileManager?), is set to explicitly forbid listing of files.
Uh, I had to unregister and then register my Willow application again - now the file is accessible. Best wishes, Tomaz
participants (2)
-
Esteban Maringolo -
Tomaž Turk