Hi everyone iam doing my final year project and i want to allow my instructor module to upload video lectures, audio lectures and presentation slides as well as images and text file in the courses and for lowering the load i want to upload these via youtube, flickr, vimeo, slideshre and picase... what would i need to accomplish my task.. iam not asking to tell me the whole procedure... but i just want to ask how would i start it using php?? i mean what would i need to do first for uploading these things?? how instructor will upload via youtube, flick, and all of them?? any kind of help will be appreciated :) thanx in advance ^-^

Dani AI

Generated

For : two practical architectures exist for a multimedia course module — host files on the server, or offload storage to third‑party services and keep only links/metadata. Offloading saves bandwidth and transcoding work, but requires integrating each provider’s API and handling auth/quotas.

Recommended starting steps for third‑party uploads: register a developer app with each provider, implement OAuth2 so instructors can grant upload rights, then call the provider upload endpoint (or accept a share link) and save the returned resource id, embed HTML or oEmbed response, thumbnail URL and privacy setting. Relevant docs: YouTube Data API, Vimeo upload API, Flickr API. Note: Picasa has been superseded by Google Photos — use the Google Photos Library API for Google image hosting.

If hosting files locally, follow secure upload best practices instead of world‑writable folders. ’s upload‑folder idea is fine but avoid 777 (as correctly warned); use 755, validate MIME/type and size, store files outside webroot, use move_uploaded_file() and scan if possible. For video transcoding and thumbnail generation use a background worker and a tool like FFmpeg. For large files implement resumable/chunked uploads or leverage provider resumable APIs.

Suggested minimal media table (store provider + external id and embed HTML so rendering is simple):

CREATE TABLE media (
  id INT PRIMARY KEY AUTO_INCREMENT,
  course_id INT,
  instructor_id INT,
  provider VARCHAR(30),    -- 'youtube','vimeo','flickr','local'
  external_id VARCHAR(255),
  title VARCHAR(255),
  description TEXT,
  thumbnail_url VARCHAR(512),
  embed_html TEXT,
  visibility ENUM('public','unlisted','private'),
  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

Workflow summary: instructor picks provider or local upload → if provider, run OAuth and upload or accept share link → store metadata and display provider embed (oEmbed where available) → if local, accept, transcode, generate thumbnail, then store and serve. Also watch provider quotas and terms of service when allowing uploads to third‑party accounts.

Recommended Answers

All 3 Replies

Member Avatar for Member #949455

@Riu 2009

Hi everyone iam doing my final year project and i want to allow my instructor module to upload video lectures, audio lectures and presentation slides as well as images and text file in the courses and for lowering the load i want to upload these via youtube, flickr, vimeo, slideshre and picase... what would i need to accomplish my task.. iam not asking to tell me the whole procedure... but i just want to ask how would i start it using php?? i mean what would i need to do first for uploading these things?? how instructor will upload via youtube, flick, and all of them?? any kind of help will be appreciated :) thanx in advance ^-^

I think you need to have a Youtube, Vimeo or etc and upload the videos. For images it's the same thing for Flickr. I also think you need to <Embed> </Embed> the videos on your websites.

For presentations you can used this:

file permission 777

Unsafe. Use 755.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.