Pushing Data to KOBO (to fix image size)

HI @Kal_Lam

i was trying to upload data on sample form via Briefcase , i am getting below error while uploading

Start pushing form and submissions
Error checking if form exists in Aggregate: UNAUTHORIZED
Sending form
Error sending form: MOVED PERMANENTLY
Sending submission 1 of 19
Sending submission 2 of 19
Sending submission 3 of 19
Error sending submission 3 of 19: UNAUTHORIZED
Error sending submission 1 of 19: UNAUTHORIZED
Sending submission 4 of 19
Sending submission 5 of 19
Error sending submission 5 of 19: UNAUTHORIZED
Sending submission 6 of 19
Error sending submission 2 of 19: UNAUTHORIZED
Sending submission 7 of 19
Error sending submission 7 of 19: UNAUTHORIZED
Sending submission 8 of 19
Error sending submission 6 of 19: UNAUTHORIZED
Sending submission 9 of 19
Error sending submission 8 of 19: UNAUTHORIZED
Sending submission 10 of 19
Error sending submission 9 of 19: UNAUTHORIZED
Sending submission 11 of 19
Error sending submission 4 of 19: UNAUTHORIZED
Sending submission 12 of 19
Error sending submission 10 of 19: UNAUTHORIZED
Sending submission 13 of 19
Error sending submission 11 of 19: UNAUTHORIZED
Sending submission 14 of 19
Error sending submission 12 of 19: UNAUTHORIZED
Sending submission 15 of 19
Error sending submission 13 of 19: UNAUTHORIZED
Sending submission 16 of 19
Error sending submission 14 of 19: UNAUTHORIZED
Sending submission 17 of 19
Error sending submission 16 of 19: UNAUTHORIZED
Sending submission 18 of 19
Error sending submission 17 of 19: UNAUTHORIZED
Sending submission 19 of 19
Error sending submission 15 of 19: UNAUTHORIZED
Error sending submission 18 of 19: UNAUTHORIZED
Error sending submission 19 of 19: UNAUTHORIZED
Success with errors

can you please help in this , my ID pw are correctly saved but it saying unauthorized

Cheers !

Neeraj

Are you trying to upload submissions from your device to the server?

Yes I am trying to upload already pulled data of submission of form A to my another form B

As earlier the picture size was very high in form A , I downloaded that media and reduce the size .

Now to take the backup of that Form A I want to upload the data in form B so the Form A can be deleted from server

Cheers!

Neeraj

@caneeraj, please be informed that submissions from Form A cannot be submitted to Form B. i.e. submissions from Form A can only be submitted to Form A while submissions from Form B can only be submitted to Form B.

Hi @Kal_Lam

Thank for replying

Is it possible in above case, that all the submission can be deleted from web after downloading via briefcase and then the same form downloaded along with data pushed back to server.

This will help us to reduced data storage used in server

Cheers!

Neeraj

Sorry I did not understand this part:

i mean to say that i want to replace the images to reduce the storage size , so what i want to do is download the whole data once with briefcase , and as you suggest earlier that

" Form A can only be submitted to Form A while submissions from Form B can only be submitted to Form B."

my query is that can i reupload the same data to same form ( images name are same but size will be reduced)

Hi @caneeraj, if your goal is purely reduced image size, you can access your images in three different sizes already: original, large and small. If you navigate to:

https://KF_URL/api/v2/assets/ASSET_UID/data.json

You can see something like this for each image attachment for each submission:

i.e. the endpoints:

  • https://KC_URL/media/small
  • https://KC_URL/media/large
  • https://KC_URL/media/original

Here’s an example of the different file sizes for a random image:

$ ls -lah *.jpg                                                                                                                 
-rw-r--r--@ 1 josh  staff   223K 17 May 09:42 large.jpg
-rw-r--r--@ 1 josh  staff   1.8M 17 May 09:42 original.jpg
-rw-r--r--@ 1 josh  staff   9.5K 17 May 09:42 small.jpg

If you still need/want to upload your submissions and media from Form A to Form B, this is possible but not trivial. You can take a look at my answers here for that:

Hope that helps.

1 Like