How to reference an uploaded image?

How to reference an uploaded image?

על ידי Abdul Rahman בתאריך
מספר תגובות: 4
I created a folder and uploaded a file called mat.jpg and mat1.gif into it. How do I reference this file in an IMG SRC= link?

ממוצע דרוגים: -
בתגובה ל: Abdul Rahman

Re: How to reference an uploaded image?

על ידי Deleted user בתאריך

Do you want to add an image to a webpage that you are creating with Moodle's html editor, (add resource, html text) ?? I am trying to do the same thing. When I upload an image, it is located at: http://my_server/moodle/data/2/image_name.jpg. If I add a resource, and choose html text as the type of resource, I get a html editor. Then if I click on the add image, I have to put in the full URL to the image.

Although, I have my DATA directory in my web directory which is NOT recommended.

My question is, how are users going to figure this out? Is there an easier way?

בתגובה ל: Deleted user

Re: How to reference an uploaded image?

על ידי Martin Dougiamas בתאריך
תמונה של Core developers תמונה של Documentation writers תמונה של Moodle HQ תמונה של Particularly helpful Moodlers תמונה של Plugin developers תמונה של Testers
Yes, there needs to be a simpler way of picking images. I imagine a popup window from which you can preview and select the images, which then uses Javascript to insert the right HTML.
בתגובה ל: Martin Dougiamas

Re: How to reference an uploaded image?

על ידי Patrik Nilsson בתאריך
is there any place in this forum that continued these thoughts ?
בתגובה ל: Patrik Nilsson

Re: How to reference an uploaded image?

על ידי Przemyslaw Stencel בתאריך
Unfortunately, the popup window that Martin mentions doesn't exist yet. In the meantime, when I need to use an uploaded image within an IMG tag, I just go to the file browser in the course and copy the url of the uploaded file - see screenshot.
צרופה file_browser.gif