Explorar el Código

fix filename video

marinofaggiana hace 5 años
padre
commit
50e5d2be29
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      Share/CCloadItemData.swift

+ 3 - 1
Share/CCloadItemData.swift

@@ -87,7 +87,9 @@ class CCloadItemData: NSObject {
                                         
                                         print("item as url: \(String(describing: item))")
                                         
-                                        let fileName = url.lastPathComponent
+                                        let ext = url.pathExtension
+                                        let fileName = "\(dateFormatter.string(from: Date()))\(conuter)." + ext
+
                                         let filenamePath = directory + fileName
                                         
                                         do {