Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Can you import/upload .zip files? #7

Open
kibaekr opened this issue Aug 20, 2014 · 6 comments
Open

Can you import/upload .zip files? #7

kibaekr opened this issue Aug 20, 2014 · 6 comments

Comments

@kibaekr
Copy link

kibaekr commented Aug 20, 2014

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?

@passalini
Copy link

@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?

@dankleiman
Copy link

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.

@miquella
Copy link

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#2

@miquella
Copy link

This has allowed us to import courses this way:

scorm_cloud.course.import_course(course_id, file_object)

@Basarqari
Copy link

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

@Basarqari
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants