Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/03/2010 15:11:33
|
rheinrichs
Power User
![[Avatar]](/forum/images/avatar/03afdbd66e7929b125f8597834fa83a4.jpg)
Joined: 08/05/2009 10:05:36
Messages: 209
Offline
|
Hi!
The new feature with filename in <code>DefaultUploadContent</code> is fine. Is it possible to get the filename in <code>DefaultUploadStreamContent</code>, too?
regards
|
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/03/2010 15:32:37
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5538
Offline
|
Hi,
sorry, I am not 100% sure what you mean.
The file name(s) are part of the upload stream, that you receive. So you really have to search for some special words within the stream. Example: stream of two uploaded files looks like:
FILENAME0=C%3A%2FUsers%2Fbmu%2FDocuments%2Faaaa1.txt&CONTENT0=4141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141&FILENAME1=C%3A%2FUsers%2Fbmu%2FDocuments%2Faaaa2.txt&CONTENT1=4141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141
You see, there is some FILENAME0, CONTENT0, FILENAME1, CONTENT1 within the stream. The content is hexadecimal characteres (you may use ValuManager to convert into byte[]).
Life is tough...
Björn
PS: is this the info you are looking for, maybe I misunderstood?
|
Björn Müller, CaptainCasa GmbH |
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/03/2010 15:33:39
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5538
Offline
|
...I just see: do not get confused by the line-breaks within the stream data of the previous post: these are done by the browser - there are no line breaks or so within the stream!!!
Björn
|
Björn Müller, CaptainCasa GmbH |
|
![](/forum/templates/default/images/spacer.gif) |
|