Pb: Using Pictures in Questions

More
4 years 7 months ago #90271 by marcomx
marcomx created the topic: Pb: Using Pictures in Questions
I uploaded jpg and gif files into my questions and when I preview the question group they are all there and it seems fine - but if I activate the survey and take it as a participant they do not appear in the questionnaire (I see placeholders only). I have changed their rights (and all folders of upload) to 755 and 777 but still I can only see them in the admin screen. If I right-click the placeholder to open picture in a different tab I get a 404 Error. What did I do wrong? I uploaded according to the guidelines.
the pictures were sucessfully uploaded in mypage.com/LimeSurvey/upload/surveys/279371/images/
as always any help appreciated, I couldn't find anything similar in the forums-
many thanks

Please Log in to join the conversation.

More
4 years 7 months ago #90272 by tpartner
tpartner replied the topic: Pb: Using Pictures in Questions
What is the (broken) path to the images in the activated survey.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 7 months ago #90274 by marcomx
marcomx replied the topic: Aw: Re: Pb: Using Pictures in Questions
it's the same path where I found the pix on my server:
mypage.com/Screening/Survey/upload/surve...79371/images/xxx.jpg

Please Log in to join the conversation.

More
4 years 7 months ago #90275 by tpartner
tpartner replied the topic: Aw: Re: Pb: Using Pictures in Questions
Well, that's odd. A valid path to a file shouldn't be affected by activating the survey.

Can you activate a dummy survey for us to test?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 7 months ago #90289 by marcomx
marcomx replied the topic: Aw: Re: Aw: Re: Pb: Using Pictures in Questions
ok, this is getting weirder - it took me a while because the dummy survey I set up from scratch using only gif files displayed its pictures as it should do.
Then I made a new dummy, copying my original questions using jpgs and adding 2 more new questions also using jpegs and activated that - and suddenly, a few of the "old" pictures are showing, others are not. the newly uploaded pictures are also showing.
they are now all jpegs, all uploaded the same way.

try this link:
applicantperformance.com/Screening/Surve...n/tk-6sqayw9hmhs5k56

Please Log in to join the conversation.

More
4 years 7 months ago #90291 by tpartner
tpartner replied the topic: Aw: Re: Aw: Re: Pb: Using Pictures in Questions
Yes, that is weird. I don't understand how you can see the images when editing or previewing the question but not in the activated survey. The path to the images is the same when previewed or activated.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 7 months ago - 4 years 7 months ago #90292 by tpartner
tpartner replied the topic: Aw: Re: Aw: Re: Pb: Using Pictures in Questions
A solution would to FTP the images up to that directory. (Cures the symptom, if not the disease.)

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 4 years 7 months ago by tpartner.
The following user(s) said Thank You: marcomx

Please Log in to join the conversation.

More
4 years 7 months ago #90293 by marcomx
marcomx replied the topic: Aw: Re: Aw: Re: Aw: Re: Pb: Using Pictures in Questions
I shall try that and report if problems persist - thanks!

Please Log in to join the conversation.

More
4 years 7 months ago #90384 by marcomx
marcomx replied the topic: Pb: Using Pictures in Questions
ok, i FTP'ed the pictures and on my original survey in admin mode all looks fine, although I had to upload one jpeg twice to make it work. But I think I am getting closer to the problem now: when I copy the survey to run it as a test dummy, I can access it once it is activated and I invited myself - but I cannot find the according folder, hence there is no place where the pictures are stored. how is this happening? i use my FTP program and can't see the dummy's folder, I use my web server control centre and cannot see the dummy folder - all I see is the original survey folder of which i did the copy. but how come i can take the survey but do not see the folder? i guess here is the reason I get a 404 - there is no image folder as there is no survey folder...
any ideas on this and why I don't get a survey copy folder?

Please Log in to join the conversation.

More
4 years 6 months ago #90604 by marcomx
marcomx replied the topic: Pb: Using Pictures in Questions
hi, I still cannot use the .jpg files in my questions. I started a new survey and imported the group with the same result: I cannot see them, now neither in the preview. Is this a problem with copying or downloading the group (i.e. img.-files or links to files are not downloaded when duplicating or exporting questions)?

Please Log in to join the conversation.

More
4 years 6 months ago #90651 by tpartner
tpartner replied the topic: Pb: Using Pictures in Questions
No, the resources (images) are not exported with a question or group.

If importing a question or group into a new survey, you will need to upload the images to:
installationRoot/upload/surveys/yourNewSurveyID/images/

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 6 months ago #90729 by marcomx
marcomx replied the topic: Pb: Using Pictures in Questions
there is no folder for that survey. just a folder for the first survey i made. i tried creating new surveys, but no folders appear - should they not be created automatically?

Please Log in to join the conversation.

More
4 years 6 months ago #90745 by tpartner
tpartner replied the topic: Pb: Using Pictures in Questions
The folder is not created when you import the survey. It's only created if you upload a resource for that survey.

You will need to copy the original survey's folder and rename it with the new survey ID.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 6 months ago #90792 by DenisChenu
DenisChenu replied the topic: Pb: Using Pictures in Questions
Think files are included in lsa files in 2.0, no ?

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now