students who have completed a short-term course or program of study, which is a condition for acceptance at a designated institution
holders of temporary resident permits (TRP) valid for a minimum of six months and their family members
foreign nationals who cannot be removed from Canada for reasons beyond their control
spouses or common-law partners (and their family members) who are in Canada and who have applied for permanent residency if they have been deemed eligible to apply (first stage approval)
person whose study permit was authorized by a visa office abroad where the permit was not issued at a port of entry
family members of athletes on a Canadian-based team, media representatives, members of the clergy or military personnel assigned to Canada
family members or a private staff member of a foreign representative who is properly accredited, may apply within Canada 90 days before or after they are no longer authorized to study without a study permit
foreign nationals and their family members holding a valid study or work permit
Remember that you can’t stay in Canada beyond the expiry date of your passport. If you renewed your passport since entering Canada, you have to submit photocopies of both your new passport and the stamp placed in your old passport.
All other applicants
If you don’t belong to one of the groups above, you must submit a study permit application. To apply, you must:
apply online or use a paper application in a country outside Canada where you are lawfully admitted.
.
Clearly it says that 'you can't apply from within Canada on your current residence status', then what the fuss ? you should have read the guideline more carefully before you had applied.
You should make the application from your home country.
Good luck.!