• ENTRAR
  • No hay productos en el carrito.

Error al subir video en aplicación media-capture

Viendo 5 publicaciones - del 1 al 5 (de un total de 5)
  • Autor
    Publicaciones
  • #10778

    Eday Alix Gonzalez M
    Participante

    Hola Israel buenas noches,

     

    De nuevo por acá con un error,  estoy probando la aplicación de media-capture pero al subir un archivo muestra un error, esto es lo que me muestra en la consola:

    <span style=”color: #222222; font-family: Menlo, monospace; font-size: 11px; white-space: pre;”>open failed: EACCES (Permission denied)</span>

      <li style=”min-width: 0px; min-height: inherit; box-sizing: border-box; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; padding-top: 2px; line-height: 12px; user-select: text;”><span class=”name” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; color: #881391; flex-shrink: 0;”>body</span><span class=”object-properties-section-separator” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; flex-shrink: 0;”>: </span><span class=”value object-value-string” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; color: #c41a16; unicode-bidi: -webkit-isolate;” title=”<!DOCTYPE html><html><head><title></title><link rel="stylesheet" href="/stylesheets/style.css"></head><body><h1>Cannot read property ‘originalname’ of undefined</h1><h2></h2>

      TypeError: Cannot read property 'originalname' of undefined at router.post (/Users/usuario/Desktop/ionic/api-media-capture/routes/uploads.js:29:30) at Layer.handle [as handle_request] (/Users/usuario/Desktop/ionic/api-media-capture/node_modules/express/lib/router/layer.js:95:5) at next (/Users/usuario/Desktop/ionic/api-media-capture/node_modules/express/lib/router/route.js:137:13) at Immediate.&lt;anonymous&gt; (/Users/usuario/Desktop/ionic/api-media-capture/node_modules/multer/lib/make-middleware.js:53:37) at runCallback (timers.js:676:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5)

      </body></html>”>”<!DOCTYPE html><html><head><title></title><link rel=”stylesheet” href=”/stylesheets/style.css”></head><body><h1>Cannot read property ‘originalname’ of undefined</h1><h2></h2>

      TypeError: Cannot read property 'originalname' of undefined↵ at router.post (/Users/usuario/Desktop/ionic/api-media-capture/routes/uploads.js:29:30)↵ at Layer.handle [as handle_request] (/Users/usuario/Desktop/ionic/api-media-capture/node_modules/express/lib/router/layer.js:95:5)↵ at next (/Users/usuario/Desktop/ionic/api-media-capture/node_modules/express/lib/router/route.js:137:13)↵ at Immediate.&lt;anonymous&gt; (/Users/usuario/Desktop/ionic/api-media-capture/node_modules/multer/lib/make-middleware.js:53:37)↵ at runCallback (timers.js:676:20)↵ at tryOnImmediate (timers.js:645:5)↵ at processImmediate [as _immediateCallback] (timers.js:617:5)

      </body></html>”</span>
      <li style=”min-width: 0px; min-height: inherit; box-sizing: border-box; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; padding-top: 2px; line-height: 12px; user-select: text;”><span class=”name” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; color: #881391; flex-shrink: 0;”>code</span><span class=”object-properties-section-separator” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; flex-shrink: 0;”>: </span><span class=”value object-value-number” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; color: #1c00cf;” title=”1″>1</span>
      <li style=”min-width: 0px; min-height: inherit; box-sizing: border-box; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; padding-top: 2px; line-height: 12px; user-select: text;”><span class=”name” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; color: #881391; flex-shrink: 0;”>exception</span><span class=”object-properties-section-separator” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; flex-shrink: 0;”>: </span><span class=”value object-value-string” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; color: #c41a16; unicode-bidi: -webkit-isolate;” title=”/storage/emulated/0/DCIM/Camera/VID_20170717_225311.mp4: open failed: EACCES (Permission denied)”>”/storage/emulated/0/DCIM/Camera/VID_20170717_225311.mp4: open failed: EACCES (Permission denied)”</span>
      <li style=”min-width: 0px; min-height: inherit; box-sizing: border-box; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; padding-top: 2px; line-height: 12px; user-select: text;”><span class=”name” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; color: #881391; flex-shrink: 0;”>http_status</span><span class=”object-properties-section-separator” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; flex-shrink: 0;”>: </span><span class=”value object-value-number” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; color: #1c00cf;” title=”500″>500</span>
      <li style=”min-width: 0px; min-height: inherit; box-sizing: border-box; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; padding-top: 2px; line-height: 12px; user-select: text;”><span class=”name” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; color: #881391; flex-shrink: 0;”>source</span><span class=”object-properties-section-separator” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; flex-shrink: 0;”>: </span><span class=”value object-value-string” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; color: #c41a16; unicode-bidi: -webkit-isolate;” title=”file:///storage/emulated/0/DCIM/Camera/VID_20170717_225311.mp4″>”file:///storage/emulated/0/DCIM/Camera/VID_20170717_225311.mp4″</span>
      <li style=”min-width: 0px; min-height: inherit; box-sizing: border-box; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; padding-top: 2px; line-height: 12px; user-select: text;”><span class=”name” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; color: #881391; flex-shrink: 0;”>target</span><span class=”object-properties-section-separator” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; flex-shrink: 0;”>: </span><span class=”value object-value-string” style=”min-width: 0px; min-height: 0px; box-sizing: border-box; color: #c41a16; unicode-bidi: -webkit-isolate;” title=”https://6ea9a732.ngrok.io/uploads/video”>”https://6ea9a732.ngrok.io/uploads/video”</span>

    #10779

    Eday Alix Gonzalez M
    Participante

    El error exactamente en body es:

    Cannot read property ‘originalname’ of undefined
    TypeError: Cannot read property ‘originalname’ of undefined at router.post (/Users/usuario/Desktop/ionic/api-media-capture/routes/uploads.js:29:30) at Layer.handle [as handle_request] (/Users/usuario/Desktop/ionic/api-media-capture/node_modules/express/lib/router/layer.js:95:5) at next (/Users/usuario/Desktop/ionic/api-media-capture/node_modules/express/lib/router/route.js:137:13) at Immediate.&lt;anonymous&gt; (/Users/usuario/Desktop/ionic/api-media-capture/node_modules/multer/lib/make-middleware.js:53:37) at runCallback (timers.js:676:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5)
    Y en exception es:

    /storage/emulated/0/DCIM/Camera/VID_20170717_225311.mp4: open failed: EACCES (Permission denied)

    #10789

    Cursosdesarrolloweb
    Jefe de claves

    Hola Eday,

    Hasta el momento nadie ha reportado una issue similar, te recomiendo instalar el plugin de diagnóstico y crear un provider con el siguiente código para probar si se han solicitado los permisos correctamente.

    Si revisas el plugin, tiene infinidad de métodos para comprobar cualquier cosa, storage, cámara, bluetooth etc, a ver si por ahí lo puedes solucionar.a

    Un saludo.

    #10804

    Eday Alix Gonzalez M
    Participante

    Hola Israel,

    Cuál es el plugin de diagnóstico? Gracias,

    #10807

    Cursosdesarrolloweb
    Jefe de claves

    Hola Eday,

    Lo tienes en el comentario anterior.

Viendo 5 publicaciones - del 1 al 5 (de un total de 5)

Debes estar registrado para responder a este debate.

Síguenos en las redes sociales para estar al tanto de los últimas novedades :)

Facebook
Facebook
Google+
Google+
https://www.cursosdesarrolloweb.es/forums/topic/error-al-subir-video-en-aplicacion-media-capture">
Pinterest
Pinterest
top
Cursosdesarrolloweb ©. Todos los derechos reservados.
📢 Inscríbete a cualquier curso por solo 10€ con acceso inmediato y para siempre📢
🌍Los cursos gratuitos son exclusivos de esta plataforma, ÚLTIMOS CURSOS EN 4K🌍
+ +

Login

Create an Account Back to login/register