hi,
I want to let admin upload files.
and i want to save some details about file in database
I did this with fileUpload control like this:
public void InsertUploadedFileInfo(string filename, int filesize, string filetype)
{
string picname="nopic.png";
MyDALBase.ExecuteNoneQuery(System.Data.CommandType.StoredProcedure, "InsertUploadedFileInfo", new SqlParameter[]{
new SqlParameter("@categoryId",Convert.ToInt32(ViewState["Id"])),
new SqlParameter("@summery",txt_summery.Text),
new SqlParameter("@Description",FreeTextBox1.Text),
new SqlParameter("@fileType",filetype),
new SqlParameter("@fileSize",filesize),
new SqlParameter("@pic",picname),
new SqlParameter("@fileStatus",1),
new SqlParameter("@UploaderName",User.Identity.Name),
new SqlParameter("@DirectoryName",ListBox1.SelectedItem.Text),
new SqlParameter("@fileName",filename)
});
}
but I want to do this by uploadify.
I can write an method in upload.ashx for saving filename, size,...
but I have a textbox, and an editor for summery and Description
and a button (let name it btn_insert) in aspx page for Inserting Information (filename,description,...)
can I access to image information in click event of button?
If not what can I do instead?
Thanks a lot