Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call the upload button on the URL: http://ip_server/example/ #446

Open
Try2b1st opened this issue Jun 4, 2023 · 2 comments
Open

Call the upload button on the URL: http://ip_server/example/ #446

Try2b1st opened this issue Jun 4, 2023 · 2 comments
Labels

Comments

@Try2b1st
Copy link

Try2b1st commented Jun 4, 2023

I have deployed OnlyOffice on a remote server. I added a file upload button to the local frontend page. I want to use the test case URL: http://ip_server/example/, I hope that the file upload button of the front-end page can call the file upload function of the entire page to help me upload the file. However, I tried uploading a file to URL using JavaScript's fetch method: http://ip_server/example/upload, but couldn't successfully upload the file. How to solve this problem?

I am noob. Thanks for your help!
image
image

@trofim24 trofim24 transferred this issue from ONLYOFFICE/DocumentServer Aug 23, 2023
@trofim24
Copy link
Contributor

this question is about our integration example, so I transferred it

@SergeyKorneyev
Copy link

Hello @Try2b1st

We're using the following library for uploading files to the frontend page: https://github.com/blueimp/jQuery-File-Upload.
Here's how it's used in our integration examples: https://github.com/ONLYOFFICE/document-server-integration/blob/master/web/documentserver-example/nodejs/public/javascripts/jscript.js#L63.

The most important step here is to correctly specify the integration example's address used in your particular case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants