Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 617
Product
XFile
Version
1.x
Title
Duplicate Form Elements When Resubmitting Form With XFile
Problem
When adding form elements to an XFRequest object using the AddFormElement method, the form elements are duplicated if you start the transfer more than once.
Solution
This happens because the form elements are not removed from the XFRequest object before uploading again. Therefore, the form elements still reside in the object and the new ones will be appended when the user triggers the Start() method of the XFRequest object. The result is a comma separated set of values.

This can be solved by calling the RemoveAll method of the FormElements collection of the XFRequest object before using AddFormElement.

See the attachment for an example.

Attachments
Attachments/KB617_files1.zip
Created : 5/1/2003 12:00:00 AM (last modified : 4/30/2003 5:01:37 PM)
Rate this article!
 
Comments