sorry I clicked submit instead of preview:
the rest of the message:
I tried createTempFiles with true and false values (of course using respectively getFile() and getData() to get content) but the file path is always trimmed
Do you have any clie on this
Many thanks in advance for your answer
try to use:
Thks for your answer
but already tried that
This is returning the path of the created temporary file..
Any other idea or suggestion?
I am NOt using uploadData..
would uploadData solve this?
That depends on what information browser sends; some browsers use full path, some just full name. We cannot fix that.
After digging on what you said, you are absolutely right.
This could be a implementation of specification but browsers justify not to do this due to security reasons..
Can this be the reason, why uploaded temp-files cannot be deleted?
// delete uploded files boolean a = item.getFile().delete(); log.info("deleted #0", a);
my log always returns: deleted false. So no files are deleted.
No, files should be deleted ok. Is there anyone blocking it?
yes someone is blocking it,
1. I upload the file,
2. the file is in the temp folder (in this state file.delete() works!).
3. I store the file into the database (blob)
3. and after successfully inserting, I want to delete the file in the temp folder
(in this state file.delete() does not work, as someone is blocking it..maybe my database?).