Rank: Advanced Member
Groups: Member
Joined: 3/18/2009(UTC) Posts: 46
Thanks: 3 times Was thanked: 1 time(s) in 1 post(s)
|
Hi Guys, Glad to found out that you've made an iPhone app. Very happy about that. But ran into some strange things (probably my error somewhere). I've downloaded the AurigmaUpSamples and extracted them to my site The link comes up into Safari but doesn't show the upload button etc. It looks like that the App thinks that its requested by an normal website instead from a iPhone. To test i used the API with the aurup protocol This one works fine exept the final saving in the folder (but i think that's the problem of the folder permissions). Code for both urls are the same. Hope you can help me, with kind regards, Rob Edit: found something in the basicdemo/index.php Code:<?php if (preg_match('#iPad|iPod#', $ua)):?>
when i change this to: Code:php if (preg_match('#iPad|iPod|iPhone#', $ua)):?>
Upload is completed, but upload folder is empty! Edited by user Thursday, December 1, 2011 4:16:20 AM(UTC)
| Reason: deleted urls
|
|
|
|
Rank: Advanced Member
Groups: Joined: 7/13/2011(UTC) Posts: 286
Thanks: 6 times Was thanked: 31 time(s) in 31 post(s)
|
Hi Rob, I've tested all your links today, they seems to work - I was able to select an image and start uploading process using all of them. However when I used the second link - I got 4xx error. Please share your server side script and check the permissions. As for the problem with empty upload folder, please check whether it happens with all the files or just with large files (say 1-2 Mb and larger)? If so, this might be an issue with server restrictions. Please configure your server. If you have any additional questions, please feel free to ask. Edited by user Thursday, November 24, 2011 7:06:20 PM(UTC)
| Reason: Not specified |
Best regards, Pauline Shirykalova Aurigma Technical Support
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 3/18/2009(UTC) Posts: 46
Thanks: 3 times Was thanked: 1 time(s) in 1 post(s)
|
Hi Pauline, All files are coming in perfectly, thanks for your help. What i did found out: We have two sites (one for testing/ one for production) if i load the first all the urls are copied to the Aurigma Up app. When i now go to the other site all the urls from the previous site are still in the Aurigma Up app, that's was what was causing the error for us. I have to close the app in the iPhone/Ipad and then the new urls are corrertly copied. So just a reminder to close the app when switching sites. Give our regards to Dmitry, Kind Regards, Rob Edited by user Thursday, November 24, 2011 11:02:20 AM(UTC)
| Reason: insert soluton
|
|
|
|
Rank: Advanced Member
Groups: Joined: 7/13/2011(UTC) Posts: 286
Thanks: 6 times Was thanked: 31 time(s) in 31 post(s)
|
Hi Rob,
Thank you for the information, but I am unable to reproduce the problem. I go to one of our test sites, click on Upload button - Aurigma Up is launched for the first time. After that I open another site in Safari, click Upload button and go to my Aurigma Up which I didn't close. All the urls are correct.
Could you please describe your actions step by step? Thanks.
|
Best regards, Pauline Shirykalova Aurigma Technical Support
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 3/18/2009(UTC) Posts: 46
Thanks: 3 times Was thanked: 1 time(s) in 1 post(s)
|
I started over again Upload zip put it in the folder www.hafo.nl/iphone2get a licence key and put it in the upload file Change Ipad into Iphone<?php if (preg_match('#iPad| iPhone#', $ua)):?> Change the rights of the folder Start safari go to the aurigma app upload a photo Look at the Uploaded file folder the photo is in the folder UploadedFile14.jpg Look at the XML file: it looks like this <?xml version="1.0" encoding="utf-8" ?> - <files> <file name="UploadedFile14.jpg" source="UploadedFile14.jpg" thumbnail="" /> </files> Look in the Thumnails folder it is empty Go to the gallery.php See the upload page I see the link to the photo showimage.php?image=..%2FUploadedFiles%2FUploadedFile14.jpg&title=UploadedFile14.jpg But no Preview on the gallery page (I see the preview on the Aurigma test page) Why are no thumbs generated? (p.s Server is possible to generate thumbs because we use the photo order plugin for virtuemart on the same server)
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 3/18/2009(UTC) Posts: 46
Thanks: 3 times Was thanked: 1 time(s) in 1 post(s)
|
Dear Guys and Girls of Aurigma, For creating thumbnails we came up with the following solution: (don't worry we still have some problems to be solved) We used the SimpleImage.php from Dmitry as a start: Post from DmitryChanged the upload.php to include the thumbnail creation Edit the div class Gallery in the Gallery.php to show the thumb: Code:
div class="gallery">
<ul class="gallery-link-list">
<?php
for ($i = 0; $i < $descriptions->documentElement->childNodes->length; $i++) :
$xmlFile = $descriptions->documentElement->childNodes->item($i);
$name = htmlentities($xmlFile->getAttribute('name'), ENT_COMPAT, 'UTF-8');
$source = 'showimage.php?';
$source .= 'image=' . rawurlencode($galleryPath . rawurlencode($xmlFile->getAttribute('source')));
$source .= '&title=' . rawurlencode($name);
$thumb = $galleryPath."Thumbnails/" . rawurlencode($xmlFile->getAttribute('source'));
?>
<li class="item">
<a data-rel="dialog" href="<?php echo $source; ?>"><?php echo $name; ?></a><br>
<img src="<?php echo $thumb; ?>" alt="thumb" width="150" height="150" />
</li>
<?php endfor; ?>
</ul>
</div>
So far so good. But... If we upload one image everything is fine. On uploading two images we'll get an upload error. The first thumb is created but the second one isn't. Original files are coming in correctly. I'll attach the files for viewing. Kind regards, Rob Thumb.zip
|
|
|
|
Rank: Advanced Member
Groups: Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Rob, I figured out why the problem occurs. You should require SimpleImage.php file in the top of the upload.php page (instead of include() method), like in this code snippet: Code:require_once 'SimpleImage.php';
I attached corrected upload.php file. It worked fine for me. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
1 user thanked Dmitry.Obukhov for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.