Skip to content

Commit

Permalink
fix: bug with a wrong name
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenusov committed Oct 23, 2021
1 parent 7f5ec52 commit 6e32449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/IosDragAndDropViewManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class IosDragAndDropView : UIView, UIDropInteractionDelegate {
let imageData = draggedImage.jpegData(compressionQuality: 0.7);
let timeInterval = NSDate().timeIntervalSince1970
let timeIntervalInString = formatter.string(from: timeInterval)!;
let name = timeIntervalInString + ".jpeg";
let name = timeIntervalInString.replacingOccurrences(of: " ", with: "").replacingOccurrences(of: ":", with: "") + ".jpeg";

guard let imageURL = NSURL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent(name) else {
return
Expand Down

0 comments on commit 6e32449

Please sign in to comment.