Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

424
Views
¿Cómo cargar datos como imágenes, PDF y archivos de Excel en DevExtreme File Manager?

Tengo una aplicación en la que quiero mostrar la réplica de la estructura de carpetas de Google Drive en mi aplicación. Puedo obtener datos de Google Drive a través de su API. Pero me cuesta subir esos datos a la biblioteca FileManager de DevExtreme. También cómo enviar los datos obtenidos del backend a través de una solicitud AJAX ( POST | GET ).

El archivo obtenido de la API:

 from pydrive2.auth import GoogleAuth from pydrive2.drive import GoogleDrive gauth = GoogleAuth() gauth.LoadCredentialsFile("mycreds.txt") if gauth.credentials is None: # Authenticate if they're not there gauth.LocalWebserverAuth() elif gauth.access_token_expired: # Refresh them if expired gauth.Refresh() else: # Initialize the saved creds gauth.Authorize() # Save the current credentials to a file gauth.SaveCredentialsFile("mycreds.txt") img = drive.CreateFile({'id': file_id}) img.GetContentFile('sample.jpg')

Código para crear el administrador de archivos desde Javascript:

 data = [ { name: "MyFile.jpg", size: 1024, dateModified: "2019/05/08", thumbnail: "/thumbnails/images/jpeg.ico", isDirectory: true, items: [ // ... // Nested data objects with the same structure // ... ] } ] new DevExpress.ui.dxFileManager(document.getElementById("file-manager"), { "fileSystemProvider": data, "itemView": { "mode": "thumbnails" }, "permissions": { "copy": true, "create": true, "delete": true, "download": true, "move": true, "rename": true, "upload": true }, "rootFolderName": "PayUP", "rtlEnabled": false, "currentPath": path, onSelectionChanged: function (e) { console.log(e) } });

Lo que quiero es cómo agregar la imagen descargada en data anteriores desde el backend de Django a través de ajax al lado del cliente. Este es el administrador de archivos DevExtreme

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!