Welcome Guest Search | Active Topics | Sign In | Register

Uploader with content management Options
DECORET
Posted: Monday, February 23, 2009 10:01:28 AM
Rank: Newbie
Groups: Member

Joined: 3/4/2008
Posts: 1
Hello,

I'd like to know if it is possible to control the file content wile uploading data ?

What i would like:
. one of my client have to send me some data contained in a 1Gb file
. it is a binary file created by the equipment I sold him, so I know its structure
. only a few bytes are usefull

My question: if my client try to upload his 1Gb, can I do data filtering on the binary content, for example to upload only the first 2 bytes. The aim is to avoid sending giga bytes but only one or two mega bytes.


Is it possible to do with EOWeb asp.net uploader control ?
If not, do you know any product in the world that can do this ?

Thanks for all

Best regards
eo_support
Posted: Monday, February 23, 2009 10:54:02 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I am not sure if there is any uploader product that would work for you. You can perform such checking either on the server side or client side. If you would like to perform such checking on the client side, you would need to implement the logic with signed code such Java or ActiveX because for security reasons, no browser will allow you to "peek" into client side files.

If you choose to check on the server, obviously the easiest way is to get the whole file first. This of course missed the whole point. In theory, an uploader can implement a “filter” interface that would allow you to examine the data and rejects the request if necessary. However in order to filter the data, you still have to have the data transferred to the server first. So this will only work if your special bytes are located in the very beginning of the file. If those bytes are in the middle of the file, or is maintained with a more complicated structure so that you will actually need to seek the file in order to decide whether it’s valid or not, then such filtering interface would have no use to you.

As such your best solution might be performing the checking on the client side with signed code. If that passes, you can then start upload by calling our client side JavaScript interface.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.