Hi,
I have a user who upload a image, on the admin site, we just able to see the "link or the name" of the picture.
I would like to see the full picture display instead of just see the "link or name".
May i know any setting i should do for it?
If the field is intended for images you should use the picture field and the base pattern will display the image directly. If you use the file field b/c you allow uploading mix types, there is no built in way to to distinguish images for direct display. You can add javascript to detect uploaded image files and replace the html from link to img. hth
Hi,
Want to know the File field we use, is it the source from moodle itself?
cos i try moodle forum upload file as show below, it able to upload different type file, and able to display whole image. But when i use in dataform, it was not able to do so!
Another issue is, when a student submit a photo report, and there is email notification send to Teacher, and the problem is when teacher click the image link through the email, it show "sorry, the requested file could not be found".
Please try the Dataform Picture field instead of the File field.
Hi Itamar,
I had tried Dataform Picture field, but there is the issue which is the same issue that i faced in using the File field.
Please look at this subject: dataform field "File" Issues which i had explain the problem that i faced
The other thread appears to be about a completely different issue. If you want the Dataform to render an uploaded image in an entry, you need to use either the Picture field or the editor field. The File field will display a link.
Hi Itamar,
I had tried to use the Picture field, and it was able to display the image as shown below:
But when it was sent to the teacher email, the teacher are not able to view the image in their phone devices, as shown below:
Access to content files requires login or guest access to the activity. Check if the image appears in the notification when at least one of these conditions is met.
Hi Itamar,
Can give more explaination on
1. Access to content files requires login or guest access to the activity. (How to check the access? Since teacher are using their phone device mail apps to access their email)
2. Check if the image appears in the notification when at least one of these conditions is met. (How to check if image appears in the notification?)
Please explain the details more. Thanks much
If you want to check this rather than ask the instructor, you need to set the activity to send you an email with the image. Take the image url from the email and try to open it directly in a browser. If the course does not allow guest access and you are not logged in, the image won't show in the browser. If the image doesn't show in the browser it won't show in the email. If the email opens in the browser it should open in the email provided the email client doesn't block images. hth
Hi Itamar,
i had tried what you had suggested, by sending the email with the image to myself, but the result is still the same .
In my phone, i use my mail app to open the report, but the picture is still NOT able to display and i cannot copy the image url too....
Any more advice of it? Or do i made some mistake in setting part?
Do you have any preset or template for testing? Please help
Were you able to see the image in your desktop email client?
Hi Itamar,
Not able to view in my desktop email client. I'm using Firefox to open my email.
The result is the same as i used in Mobile Mail App.
It just show the picture info/name as shown below:
Any access setting that i had missed up?
Are you logged in to Moodle when you try to view the image in the email? Have you tried copying the image url from the email and opening it in a browser?
Hi Itamar,
Yes, i'm logged in to Moodle.
I try to copy the image url and open in the browser, but it showed "the requested file could not be found"
And you can see the image in the Dataform? What Dataform version do you have?
Ya, I can see the image in dataform.
I'm using the latest version dataform
Is it the same url and dataform and in the email?
Hi Itamar,
Ya, the url are the same.
Is that the access issue?
I try to do some testing on the setting at the notification part for email setting and found out some bug as shown below:
and will this Display on page types setting caused the email not able display the image?
Hi Itamar,
I received the email what i had posted in the moodle forum.
I am able to view the image from moodle forum email sending from my phone device Mail App as shown in the picture below.
So will it be Dataform Notification Module itself bugs?