@umituz/react-native-ai-pruna-provider 1.0.51 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-pruna-provider",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"description": "Pruna AI provider for React Native - implements IAIProvider interface for unified AI generation",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -96,11 +96,16 @@ export async function uploadFileToStorage(
|
|
|
96
96
|
// Create FormData with file object format (React Native compatible)
|
|
97
97
|
const formData = new FormData();
|
|
98
98
|
|
|
99
|
+
// Generate unique filename with timestamp
|
|
100
|
+
const timestamp = Date.now();
|
|
101
|
+
const randomId = Math.random().toString(36).substring(2, 8);
|
|
102
|
+
const uniqueFileName = `vivoim_${timestamp}_${randomId}.jpg`;
|
|
103
|
+
|
|
99
104
|
// React Native expects {uri, type, name} format for file uploads
|
|
100
105
|
const fileObject = {
|
|
101
106
|
uri: dataUri,
|
|
102
107
|
type: mimeType,
|
|
103
|
-
name:
|
|
108
|
+
name: uniqueFileName,
|
|
104
109
|
} as {
|
|
105
110
|
uri: string;
|
|
106
111
|
type: string;
|