Hi,
I'm working on the RadUploadHandler.
ATM, I have implemented a custom Filename calculation, and folder management following the posts in this forum.
But now, I'm facing another problem :
For a single file, It seem that each time a new chunk of the current file is being uploaded, a new instance of RadUploadHandler is being instantiated.
I'm working on a server-side post-transfer file comparaison, in order to recognize file already uploaded.
From my app point of view, I need to store a same image multiple times (in my DB at least).
So in order to avoir storing the same image N times on the hard drive, I have implemented a post-transfert file-content comparison.
In case of a file upload of an already existing file, this is my scenarion :
- In an overloaded InitializeChunkStorage, based on the filename, I move a possible "identical file" to another filename. At this moment, I want to store multiple informations.
- in an overloaded SaveChunkData, I want to compare the two files (byte to byte comparison), and retrieve the informations stored in the InitializeChunkStorage method.
My problem is, that any information sotred in a CustomRadUploadHandler have disappeared when I'm in SaveChunkData.
So is there a way to persist informations, in a per-File scope ? (not in a per-upload session).
Thanks in advance.
I'm working on the RadUploadHandler.
ATM, I have implemented a custom Filename calculation, and folder management following the posts in this forum.
But now, I'm facing another problem :
For a single file, It seem that each time a new chunk of the current file is being uploaded, a new instance of RadUploadHandler is being instantiated.
I'm working on a server-side post-transfer file comparaison, in order to recognize file already uploaded.
From my app point of view, I need to store a same image multiple times (in my DB at least).
So in order to avoir storing the same image N times on the hard drive, I have implemented a post-transfert file-content comparison.
In case of a file upload of an already existing file, this is my scenarion :
- In an overloaded InitializeChunkStorage, based on the filename, I move a possible "identical file" to another filename. At this moment, I want to store multiple informations.
- in an overloaded SaveChunkData, I want to compare the two files (byte to byte comparison), and retrieve the informations stored in the InitializeChunkStorage method.
My problem is, that any information sotred in a CustomRadUploadHandler have disappeared when I'm in SaveChunkData.
So is there a way to persist informations, in a per-File scope ? (not in a per-upload session).
Thanks in advance.