Hey,
i am trying to display an image on my page which was uploaded.
the image is stored in ossn_data/1/folder/image.png.
how would i display it in browser?
Would be cool if someone would provide an example.
okay Arsalan.
i managed to do it now :)
thanks for your help with it :)
@Arsalan Sha:
How about if a file is not uploaded with a form, but captured with webcam? how can i register that?
whats the difference between the type: object, user and annotation?
ah shit.
The thing is that the images shouldnt be available on the page its just for an internal process.
So only admins should see those images.
so i did it with just moveuploadedfile
You can take a look at OssnProfile photo upload action and OssnPhoto class.
The image must be uploaded via OssnFile and the image can be owned by (object, user or annotation)
After fetching the file you need to use following :
$path = $file->getPath();
fread($path) or file_get_contents($path);
How did you uploaded file?
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)