PDA

View Full Version : [CLOSED] MultiUpload can't add uploaded file's path to the htmleditor



hdsoso
Oct 05, 2013, 1:40 AM
after files uploaded, i want to add the files to the htmleditor , but not work. if use FileUploadField, it works fine,please view my test code:

Daniil
Oct 07, 2013, 4:46 AM
Hi @hdsoso,

Thank you for the report. We are investigating.

Daniil
Oct 07, 2013, 8:10 AM
It has been fixed in the SVN trunk.

hdsoso
Oct 07, 2013, 8:58 AM
the only last uploaded file show in editor


he_cont.SetValue(he_cont.Text + img);

the first run, he_cont.Text contains img's path, but ,the second pic upload, the he_cont.Text dose not contains the last img's path,
and another question, buttonText can set to other language, the default is "Browse..."?

Daniil
Oct 07, 2013, 1:45 PM
Got it.

An uploading request is a FLASH request. It doesn't submit the fields, including he_cont.Text.

Please try the following:

<script>
Ext.form.field.HtmlEditor.override({
append : function (v) {
this.setValue([this.getValue(), v].join(''));
}
});
</script>
and

he_cont.Call("append", img);
instead of a SetValue call.

Daniil
Oct 07, 2013, 2:44 PM
and another question, buttonText can set to other language, the default is "Browse..."?

Please use:

<ext:MultiUpload runat="server">
<Button>
<ext:Button runat="server" Text="My Browse Text" />
</Button>
</ext:MultiUpload>

P.S. It is better to keep the only topic per thread.