Hey Jon,

2013/6/10 Jon Haitz Legarreta <jhlegarr...@vicomtech.org>:
> Yes, that works. However, while trying to let Wt guess the image size, the
> second argument, according to the doc, should be a const std::string & file,
> the local filesystem as file.

m_SpoolFileName.toUTF8() is precisely that?

> I've tried with WFileUpload's clientFileName, which is the only local
> resource I can reach according to the API, but I get an error at
> std::string.

The clientFileName() should be the filename that the file had on the
client's computer -- it does not relate to anything at the server, and
it's not very trustworthy either (some browsers provide the full path,
while others don't).

Regards,
koen

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to