This is a migrated thread and some comments may be shown as answers.

RichTextBox Upload DOCX to PHP

2 Answers 70 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 08 Apr 2016, 06:53 AM

Hello,

I want to generate and upload docx file within a radrichtextbox on click of a button. On server side, I am using php. Can anyone suggest how to do this?

Thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 12 Apr 2016, 03:24 PM
Hello Manoj,

You could load a document in RadRichtextBox or export it using the Import() and Export() methods of DocxFormatProvider. They expose different overloads, which you could utilize to obtain the byte array that represents the document.

However, I'm not sure about the exact setup of the project and if you need further information, I would like to ask you to share more details on the scenario. 

Regards,
Tanya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Manoj
Top achievements
Rank 1
answered on 13 Apr 2016, 03:19 AM

Hello Tanya,

My application scenario is as follows:

1) I have a web server setup of Apache, PHP 5.4 and Mysql

2) The server will serve telerik richtext and spreadsheet application.

3) The user will haveto sign in to have access to the application.

4) When user creates a document/spreadsheet and clicks upload button in menu, the document/spreadsheet will get converted to byte array and will be sent/uploaded to upload.php page.

5) upload.php will check the session details of the app and will either store it in mysql database or save it as a file on disk.

Now the problem is,

1) I don't know how to upload the document/spreadsheet to upload.php and store it on disk on php side

2) I don't know how to share session details with silverlight app at the time of sign in

 

Regards,

Manoj Agrawal

Tags
RichTextBox
Asked by
Manoj
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Manoj
Top achievements
Rank 1
Share this question
or