Uploading a (pdf) file seems to work, but downloading the same file does not.

Using

output(lecture.slidesPDF)

produces a link without anchor to click on. Hand desugaring this to

downloadlink action{ lecture.slidesPDF.download(); } { "PDF" }

does produce a clickable link, but produces no response from the server,
not even in the log.

Submitted by Eelco Visser on 1 April 2010 at 13:44

On 1 April 2010 at 15:38 Danny Groenewegen commented:

Can’t reproduce it yet, can you try this small test app :

application exampleapp

init{
  var p1 := Person{};
  p1.save();
}

define page root() {
    for(p:Person){
		form{
			input(p.photo)
			submit action{} {"save"}
		}
		output(p.photo)
    }
}

entity Person {
  photo       :: File  
}

On 6 April 2010 at 13:25 Eelco Visser commented:

Download is not the problem. Upload in ajax form is broken.

Log in to post comments