scorm-cloud icon indicating copy to clipboard operation
scorm-cloud copied to clipboard

Can you import/upload .zip files?

Open kibaekr opened this issue 10 years ago • 6 comments

The readme only goes over retrieving courses hosted in scorm cloud, but how would I actually import courses into the scorm cloud storage space in our lms interface?

Is there a more thorough ruby api documentation?

kibaekr avatar Aug 20 '14 02:08 kibaekr

@kibaekr i'm looking for it too... I figure out how to upload files, but the course importation is not working here =/

@miquella did a fork, can you help us?

passalini avatar Sep 03 '14 18:09 passalini

Hey guys,

We're working on this too. To use the import_course method in the course service, we had to:

  • get an upload token
  • call the upload_file method with the token and the file path
  • THEN, the return value for upload_file is the path you should use in import_course

In other words:

path = scorm_cloud.upload.upload_file(scorm_cloud.upload.get_upload_token, /your/file/path) scorm_cloud.course.import_course(course_id, path)

Or something like that.

dankleiman avatar Sep 17 '14 15:09 dankleiman

Sorry about the delay, it's been a very busy month... we had to update our fork of the gem (https://github.com/instructure/scorm-cloud) to properly support uploads & imports

See: instructure/scorm-cloud#2

miquella avatar Sep 17 '14 17:09 miquella

This has allowed us to import courses this way:

scorm_cloud.course.import_course(course_id, file_object)

miquella avatar Sep 17 '14 17:09 miquella

At last Files can be uploaded to Github. Thanks Guys for this step but I worried of some things.No issue

Basarqari avatar Feb 20 '16 12:02 Basarqari

Go to Your Forked Repository Click on the Button Upload, You could surely upload your Files and then submit also as a Pull Request

Basarqari avatar Feb 20 '16 12:02 Basarqari