As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I was using Kinvey v1 within my Titanium app and when uploading my image with this code:
var image = evt.media.imageAsResized(300,300);
var promise = Kinvey.File.upload(image, null, {
public: true
});
promise.then(function(e) {
var promise = Kinvey.File.stream(e._id, {
success: function(file) {
var imageurl = file._downloadURL;
},error: function(e){
console.log("error uploading file...");
}
});
}, function(error) {
console.log(error);
});
everything just worked fine.
Now I'm trying to follow the new V3 approach and it doesn't work. Also, seems that the example on Titanium's documentation is some sort of Web JS instead of Titanium specific guide.
This is my v3 code:
var image = evt.media.imageAsResized(300,300);
var metadata = {
public: true
};
var promise = Kinvey.Files.upload(image,metadata)
.then(function(file) {
console.log(" *** SUCCESS UPLOADING IMAGE: " + JSON.stringify(file));
})
.catch(function(error) {
console.log(" *** error on image upload: " + JSON.stringify(error));
});
Just to make it clear, "evt.media" is the resulted image/blob from my camera/photo gallery from device (iOS)
I have also tried to save the image as an jpg file on device's memory but it also doesn't seem to work. The image is been uploaded but when I try to check its URL the browser doesn't understand it as an image.
Can you give me some idea on how to proceed? Maybe a Titanium-specific documentation on image uploading would be nicer =)
Thanks!
Best Answer
P
Pranav J
said
almost 6 years ago
Carlos,
Are you still facing this issue? I reviewed recent logs and didn't find any errors representing image upload problems.
Are you still facing this issue? I reviewed recent logs and didn't find any errors representing image upload problems.
Thanks, Pranav Kinvey
B
Billy Gee
said
almost 6 years ago
Hello Carlos,
Thank you for reporting this. We will investigate and get back with you with recommendations as soon as possible.
The 400 error indicates that the request being sent is not formed correctly. Unfortunately, I cannot see the actual query in our logs since it has been cleared. Can you please send the filename of the file you are trying to upload? I also cannot find a file named "evt.media" in our logs.
Finally if you could send the actual query that you are using to sent in the request including the data in the query, that would be very helpful in our investigation.
Carlos Henrique Zinato
Hi everyone,
I was using Kinvey v1 within my Titanium app and when uploading my image with this code:
everything just worked fine.
Now I'm trying to follow the new V3 approach and it doesn't work. Also, seems that the example on Titanium's documentation is some sort of Web JS instead of Titanium specific guide.
This is my v3 code:
and this is the error message it gives me:
Just to make it clear, "evt.media" is the resulted image/blob from my camera/photo gallery from device (iOS)
I have also tried to save the image as an jpg file on device's memory but it also doesn't seem to work. The image is been uploaded but when I try to check its URL the browser doesn't understand it as an image.
Can you give me some idea on how to proceed? Maybe a Titanium-specific documentation on image uploading would be nicer =)
Thanks!
Are you still facing this issue? I reviewed recent logs and didn't find any errors representing image upload problems.
Thanks,
Pranav
Kinvey
- Oldest First
- Popular
- Newest First
Sorted by Newest FirstPranav J
Are you still facing this issue? I reviewed recent logs and didn't find any errors representing image upload problems.
Thanks,
Pranav
Kinvey
Billy Gee
Hello Carlos,
Thank you for reporting this. We will investigate and get back with you with recommendations as soon as possible.
The 400 error indicates that the request being sent is not formed correctly. Unfortunately, I cannot see the actual query in our logs since it has been cleared. Can you please send the filename of the file you are trying to upload? I also cannot find a file named "evt.media" in our logs.
Finally if you could send the actual query that you are using to sent in the request including the data in the query, that would be very helpful in our investigation.
We look forward to hearing back from you.
Regards,
Billy Gee
-
How do I use Kinvey in my web app?
-
Is it safe to include keys/secrets in my client-side JavaScript app?
-
Why is the activeUser null even though I am logged in?
-
Login does not work even though credentials are valid.
-
Social login doesn’t work.
-
Appending objects to an Array (HTML5 - JS)
-
New to node.js - need bootstrap to downloadfiles from Kinvey
-
Problem with Aggregation/Grouping
-
Internal Server Error using Twitter Sign Up
-
Data Store
See all 315 topics