Upload files automatically

IIS, Apache
Post Reply
fouratbh
Posts: 4
Joined: Sat Feb 29, 2020 12:03 pm

Upload files automatically

Post by fouratbh » Sat Feb 29, 2020 12:09 pm

Hello, I am using onlyoffice community server 10.5, I have compiled and built the source code (which is asp.net and C #) and everything works fine, simply when I arrive on documents and I press the "upload a file" button, the windows window opens by asking me the file to upload but what i want is to specify a single folder for example ("C: / documents") and each time I click to upload a file it automatically points to that folder there and automatically downloads all the files saved to that folder without even opening the windonws folder selection window, so to do that I have to change the source code, can you help me do that please?

Carl
Posts: 479
Joined: Thu Apr 12, 2018 10:00 am

Re: Upload files automatically

Post by Carl » Mon Mar 02, 2020 8:04 am

Hello,

Please note that there are two options when uploading files to the portal: Upload Files and Upload Folder. Please make sure you are choosing the correct one.

fouratbh
Posts: 4
Joined: Sat Feb 29, 2020 12:03 pm

Re: Upload files automatically

Post by fouratbh » Mon Mar 02, 2020 8:15 am

i'm talkin about uploading files, when i click the "upload a file " button i want it to upload all the files automatically in "my documents" folder

Carl
Posts: 479
Joined: Thu Apr 12, 2018 10:00 am

Re: Upload files automatically

Post by Carl » Mon Mar 02, 2020 9:27 am

Why not use the Upload Folder option then?

fouratbh
Posts: 4
Joined: Sat Feb 29, 2020 12:03 pm

Re: Upload files automatically

Post by fouratbh » Mon Mar 02, 2020 9:34 am

because i just want to upload the files in that folder, because when i choose upload a folder it will upload the entire folder in the interface of the web site , but i just want it to be a list of files instead of a single folder

Carl
Posts: 479
Joined: Thu Apr 12, 2018 10:00 am

Re: Upload files automatically

Post by Carl » Mon Mar 02, 2020 1:20 pm

There is no such possibility. You can just go to the required folder, press Ctrl+A to select all files and upload them.

fouratbh
Posts: 4
Joined: Sat Feb 29, 2020 12:03 pm

Re: Upload files automatically

Post by fouratbh » Mon Mar 02, 2020 1:29 pm

yes, but what i want is changing the upload files funcion in the source code in order to upload the files automatically when i click the "upload a file " button

Carl
Posts: 479
Joined: Thu Apr 12, 2018 10:00 am

Re: Upload files automatically

Post by Carl » Tue Mar 03, 2020 11:06 am

Hello,

Source code of the Community Server is available here:
https://github.com/ONLYOFFICE/CommunityServer

You can use search and find all code pieces related to file uploading. You can also create an issue there.

Post Reply