Silvia,

The URL you provide in the link points to the application, and without any additional configuration (see below) what you see is expected behaviour.

Seaside doesn't serve files per default. There are two thing you can do

a) setup an http server like apache or nginx to serve files from some directory and add links to that server to your application

b) implement a subclass of WAFileLibrary, import the files you want to server from within your Smalltalk image into that FileLibrary and register it with your application. That way your Smalltalk image works like a classical http server for the files you added.

For both alternatives, I guess it is best to search the web, because that would be too long a description for a mailing list. Not that they are complicated.

Joachim

Am 26.03.15 um 00:40 schrieb Silvia Ruiz Diaz:
Hi all!

I'm new to Pharo and I'm trying to generate links to be able to serve some files. This is what I have so far.


html anchor url:'http://localhost:8080/myApp/myFile'; with: 'Link'


When clicking on any of the generated links I'm getting redirected to the application homepage, so I'm wondering if is there any additional setup I have to take care of in order to grant access to these files.

My OS is Windows 64.

Thanks in advance!

Regards!


Reply via email to