Discussion Forums  >  Uncategorized

Replies: 16    Views: 654

Roy Ma
Lost but trying
Profile
Posts: 23
Reg: Oct 24, 2010
Manchester, Eng...
230
04/25/11 02:08 AM (14 years ago)

Uploading Images

Great addition to the app - thanks very much. For us thickos, any chance of you providing a demo script for us to put on our own site and fill in the blanks? I'd love to send photos to Flickr but not sure how to do this!
 
Roy Ma
Lost but trying
Profile
Posts: 23
Reg: Oct 24, 2010
Manchester, Eng...
230
like
04/25/11 02:50 AM (14 years ago)
Also, I've tried the Email Photo screen, filled in my email address, but it says Screen not found? Am I missing something obvious?
 
erichopf
buzztouch Evangelist
Profile
Posts: 316
Reg: Mar 14, 2011
NY, NY
3,460
like
04/25/11 06:43 AM (14 years ago)
Roy, There is a PHP script for you to check out. It won't be easy peasy, but if you Google about PHP you could porbably figure it out. Not sure about Flickr integration via the Upload Screen, as they have APIs and system. Root around a bit on Google and you might be able to source some info on other folks attempts. Regarding the email, you have to download, recompile and install the app on the Sim or Device. This is a new feature and your old build doesn't have all the necessary details for it. Also, you can use this link and upload via email to Flickr, if you want to give that a go. http://www.fanhow.com/knowhow:Upload_Photos_to_Flickr_Via_Email_31597973 Let me know if anything doesn't make sense or you have any other questions.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/25/11 07:50 AM (14 years ago)
Tutorial coming...totally agree. Still a nerdy thing to manage uploads on your site. You could always ask your webmaster too, should be easy for them with the provided script. Flickr: a) First step is to make sure you can get a Flickr RSS feed going. This is the hardest part. You could also power an Image Gallery with Flickr JSON data. b) Assuming you can get a) going from one of your Flickr albums... c) Look in your Flickr account for the Email address for that Album, all albums get a unique email address d) On the Flickr RSS screen, Advanced Settings add a nav-bar-button to 'add photos' (I like the camera icon) if you want users to be able to post. Point this right-nav-button to your Image Emailer screen Should work, did this exact thing yesterday. Also would like to make a video about Flickr. 10 videos probably need made just for images ;-)
 
TheHoogler
I hate code!
Profile
Posts: 152
Reg: Feb 10, 2011
Anchorage, AK
1,520
like
04/25/11 09:59 AM (14 years ago)
On the image upload page, it says it can upload to the Buzztouch control panel. How does this interact with the control panel? Can you link the image uploader to a gallery using the control panel (Buzztouch server)? I suppose my question is, if you choose to upload to the control panel, how does this image become available to an app end user to view?
 
erichopf
buzztouch Evangelist
Profile
Posts: 316
Reg: Mar 14, 2011
NY, NY
3,460
like
04/25/11 10:55 AM (14 years ago)
Hoogler, You should reread the image uploader screen page. The way the instructions layout is 1) create an upload page 2) create a gallery 3) in the galley's advanced settings, create a left button (I use the + or camera button for my experiments) and link it to the upload page and then in the dataURL field, use the link provided in the text of 'Use this dataURL in the Advanced Settings of an Image Gallery' from upload page. Using buzztouch's server for your images is just to test out the feature. Once you have 10 images, it will delete the oldest images will not be saved as you have more images uploaded. Not something ment to be live on an app in the store. I am working on getting the PHP script working, as I am showing a Error: 1002 and figuring out how to solve it. If anyone has a pointer, I will figure it out but maybe it's something obvious I'm missing.
 
erichopf
buzztouch Evangelist
Profile
Posts: 316
Reg: Mar 14, 2011
NY, NY
3,460
like
04/26/11 07:58 AM (14 years ago)
David, Should the PHP script be writing to a csv file on my server? I have set up a test on my SuperV app. Looked at the script and tried it but they are not uploading. http://www.hopfoto.com/vphotos.php Receive that the photo uploaded, but it does not show on my server and I'm not sure where the JSON info should be recorded to. Please advise if you have a spare moment to point me in the right direction.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/26/11 11:13 AM (14 years ago)
OK... I understand the confusion. No, the .PHP example script does not need to write the image data to a database or a csv file. It can if you alter it (for other backend data storage needs) but it's meant to just save images to a directory. Then...another script, the script you would use in an Image Gallery would read the contents of the directory where you saved all the images and output the JSON data. I whipped up a script to do this: http://www.buzztouch.com/appdata/sample-image-output.txt a) Download this and re-save it as a .php file b) Put in on your server, probably in the same directory that you are saving images to. You could modify the imgDir variable to ask it to read images from a different directory. This would be useful if you wanted to use this one script to output images for different directories. Like if you had a few different Galleries. IN this case, you would probably use a variable in the URL sent by the phone to 'tell the script' what directory to read. c) Visit the script in your browser and see if it output the JSON data you expect. It should. Tests good here. d) Use this URL as the Gallery dataURL
 
erichopf
buzztouch Evangelist
Profile
Posts: 316
Reg: Mar 14, 2011
NY, NY
3,460
like
04/26/11 11:44 AM (14 years ago)
David, Thank you so very much for taking the time to create the script. The script tests fine in the browser but then give me an ~Error~ message There was a problem.....well-formed. Any ideas?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/26/11 11:50 AM (14 years ago)
post the URL you're using...typo somwhere maybe? I need to see the actual JSON.
 
erichopf
buzztouch Evangelist
Profile
Posts: 316
Reg: Mar 14, 2011
NY, NY
3,460
like
04/26/11 11:55 AM (14 years ago)
Rodger, Rodger, http://www.hopfoto.com/vphotos/output.php I receive details back, but the folder is actually empty. When I try to upload to the folder, it informs me- Upload Complete You can....
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/26/11 12:07 PM (14 years ago)
OK... I wonder how the JSON output could be 'reading images' if no images exist? Not possible - is it? If the folder was empty then the JSON would not include the file names to the images. Somethings not adding up. I do see a small typo in the output (from the script I created, you'll need to to fix it): This ttp://www.hopfoto.com/vphotos/./c0aec235105ac46655f54a968fa1d2d70ffd4811 _1000000006.jpg has an extra ./ in front of the image name - see it? Just change the output in the script to get rid of this. Change it to hopfoto.com/vphotos/ ... then the file name So, that will fixt that little bug but still doesn't explain how you could be uploading to a folder, the folder be 'empty' then the output script lists the images that are not there?
 
erichopf
buzztouch Evangelist
Profile
Posts: 316
Reg: Mar 14, 2011
NY, NY
3,460
like
04/26/11 01:58 PM (14 years ago)
David, After trying to view what ever info was in the folder or what it was exactly, I gave up and trashed it. Now I have a new clean folder and I deleted and re-uploaded the PHP scripts. The Image Uploader page says that the files have uploaded but nothing is showing in the folder or in my image gallery. Any ideas? Gallery- http://www.hopfoto.com/vphotos/output.php ImageUL- http://www.hopfoto.com/vphotos.php
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/27/11 03:36 AM (14 years ago)
I saw this earlier but didn't get back to it. After pondering it this afternoon, I think I have a better approach. I'll get a SINGLE page script built with some HTML + PHP to put on your server. This page's purpose will be to upload and image (from the web-page itself) and test the result. If it won't work, neither will the image uploader. This script / page will be a useful test utility for others too. In the meantime, maybe have a look at your PHP configuration to make sure it allows uploads, has a temp directory to upload to, doesn't have a really really small 'max-file-upload' size etc. If this doesn't make any sense, OK, the script I'll make should make it easier to find the problem.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/28/11 02:45 AM (14 years ago)
Didn't get to this...hope to soon....LOOOOOONG day.
 
erichopf
buzztouch Evangelist
Profile
Posts: 316
Reg: Mar 14, 2011
NY, NY
3,460
like
04/29/11 01:10 PM (14 years ago)
No worries. We know you have a lot on your plate. Let me know if you get a chance to get at this issue next week.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/29/11 11:03 PM (14 years ago)
Ok... put up a new script and a link to in on the Image Uploader screen. Grab it, save it as a .PHP file and plop it in a writeable directory. It does 4 things: 1) Allows you to visit / test it in a regular browser to make sure your server accepts uploads 2) If it test OK with a regular browser, it can be used as the URL for an Image Gallery and an Image Upload screen. Same url. 3) If used as a gallery dataURL, it outputs JSON data for the IMage Gallery from the images in the folder on your site 4) If used as an upload URL, it saves the upload then outputs the expected JSON for the phone with the 'valid' message. I tested it on several apps with several phones. Be sure to include the deviceId=[deviceId] variable in your URL.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.