[EMP2012] Upload form

Jonathan Sattelberger jsattelb at head.cfa.harvard.edu
Sun Nov 11 14:59:44 MST 2012


Verified Lance from the main page upload form:

mysql> select * from megamovie order by ID DESC limit 1\G;
*************************** 1. row ***************************
                      ID: 70
                    NAME: Lance Jones
                   EMAIL: lj535i at gmail.com
                LOCATION:
               FILE_NAME: image.jpg
               FILE_SIZE: 1302
FILE_DISPLAY_RESOLUTION: 2592 x 1936
               FILE_PATH: 
/var/www/projects/megamovie/upload/2012/11/11/0000000012.pem
         SUBMISSION_DATE: 2012-11-11 16:58:09
  OBSERVATION_DATE_START: 2012-11-11 00:00:00
    OBSERVATION_DATE_END: 2012-11-11 00:00:00

On 11/11/12 4:56 PM, Scott W. McIntosh wrote:
> Hugh and Lance can upload too
>
> Cheers,
> Scott
>
> **---------------------------------------------------------------------------------------------**
> *Dr. Scott W. McIntosh*
> Section Head: Solar Transients & Space Weather
>
> National Center for Atmospheric ResearchPhone:  303 497 1544
>  (Room 3624)  High Altitude ObservatoryFax:  303 497 1589
>      3080 Center Green Drive - CG1Cell:    720 340 6263
> Boulder, CO 80301Email: mscott at ucar.edu <mailto:mscott at ucar.edu>
>
> http://people.hao.ucar.edu/mscott
> http://www.eclipsemegamovie.org
> http://iris.lmsal.com
>
>
>
>
>
>
>
> On Nov 12, 2012, at 7:51 AM, Jonathan Sattelberger wrote:
>
>> Scott,
>>
>> From the App page: 
>> <http://helio.cfa.harvard.edu/megamovie/upload_request.htm> I see:
>>
>> -rw-r--r-- 1 www-data apache  161687 Nov 11 14:46 
>> 8DC9F7FC-9061-4D42-828A-EEE6F5A7F97D.jpg
>> -rw-r--r-- 1 www-data apache 1041677 Nov 11 16:43 
>> 61A844E4-1E6A-4C0B-8042-53C721E04836.jpg
>> -rw-r--r-- 1 www-data apache 1041677 Nov 11 16:43 
>> BA2F7B84-9370-475A-A505-005D50A8A184.jpg
>>
>> Jonathan
>>
>> On 11/11/12 4:44 PM, Scott W. McIntosh wrote:
>>> Jon,
>>>
>>> I just uploaded a picture using the app....can you see it?
>>>
>>> Cheers,
>>> Scott
>>>
>>> **---------------------------------------------------------------------------------------------**
>>> *Dr. Scott W. McIntosh*
>>> Section Head: Solar Transients & Space Weather
>>>
>>> National Center for Atmospheric ResearchPhone:  303 497 1544
>>>  (Room 3624)  High Altitude ObservatoryFax:    303 497 1589
>>>      3080 Center Green Drive - CG1Cell:    720 340 6263
>>> Boulder, CO 80301Email: mscott at ucar.edu <mailto:mscott at ucar.edu>
>>>
>>> http://people.hao.ucar.edu/mscott
>>> http://www.eclipsemegamovie.org <http://www.eclipsemegamovie.org/>
>>> http://iris.lmsal.com <http://iris.lmsal.com/>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Nov 12, 2012, at 7:37 AM, Hugh Hudson wrote:
>>>
>>>> Success! Please look for IMG_0012.JPG. I think it's there!
>>>>
>>>> Hugh
>>>>
>>>> On Nov 12, 2012, at 7:31 AM, Jonathan Sattelberger wrote:
>>>>
>>>>> Not sure why that called back to you. Disabled the filesize and 
>>>>> image resolution size checking. Try again.
>>>>>
>>>>> On 11/11/12 4:22 PM, Hugh Hudson wrote:
>>>>>>
>>>>>> That helped, but now this (same 336 kB)
>>>>>>
>>>>>> Hugh
>>>>>>
>>>>>> On Nov 12, 2012, at 7:12 AM, Jonathan Sattelberger wrote:
>>>>>>
>>>>>>> Done. Added if(!in_array(_*strtolower*_($filetype), $ALLOWED_TYPES))
>>>>>>>
>>>>>>> In reference to:
>>>>>>>
>>>>>>> $ALLOWED_TYPES = array('jpg', 'jpe', 'jpeg', 'png'); // allowed 
>>>>>>> extensions
>>>>>>> $LOOKUP_TYPES  = array(
>>>>>>>         'jpg'  => 'image/jpeg',
>>>>>>>         'jpe'  => 'image/jpeg',
>>>>>>>         'jpeg' => 'image/jpeg',
>>>>>>>         'png'  => 'image/png'
>>>>>>>         ); //allowed file types per extension
>>>>>>>
>>>>>>> On 11/11/12 4:05 PM, Hugh Hudson wrote:
>>>>>>>> OK, tried again with another small (336 kB) .jpg, and it did 
>>>>>>>> not go. Here is the resulting message:
>>>>>>>>
>>>>>>>>
>>>>>>>> Hugh
>>>>>>>> jona
>>>>>>>> On Nov 12, 2012, at 4:54 AM, Jonathan Sattelberger wrote:
>>>>>>>>
>>>>>>>>> Hugh,
>>>>>>>>>
>>>>>>>>> *Mimetype* - fixed! The /tmp directory was overtaken with 
>>>>>>>>> 550,000 temporary directories. Therefore the script was unable 
>>>>>>>>> to create the temporary file name it needed during the POST 
>>>>>>>>> process.
>>>>>>>>>
>>>>>>>>> *Internal Server Error* - This may have been related to the 
>>>>>>>>> /tmp directory issue mentioned above. What is the file size of 
>>>>>>>>> the image uploaded from the iPod? Currently the MAX SIZE per 
>>>>>>>>> image is 64 MB. The Form POST session is set to 128 MB.
>>>>>>>>>
>>>>>>>>> Jonathan
>>>>>>>>>
>>>>>>>>> On 11/10/12 11:38 PM, Hugh Hudson wrote:
>>>>>>>>>> Jonathan, that's nice, but still no luck with the upload. I get this message:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> That was just with an arbitrary .jpg. I then tried it with an actual Ipod image, and it crashed completely with this message:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hugh
>>>>>>>>>>
>>>>>>>>>> On Nov 11, 2012, at 2:28 PM,jsattelb at head.cfa.harvard.edu  wrote:
>>>>>>>>>>
>>>>>>>>>>> Hugh,
>>>>>>>>>>>
>>>>>>>>>>> Please try the following URL:
>>>>>>>>>>>
>>>>>>>>>>> http://helio.cfa.harvard.edu/megamovie/
>>>>>>>>>>>
>>>>>>>>>>> Jonathan
>>>>>>>>>>>
>>>>>>>>>>>> Alas, that page does not appear to have a skin and won't accept a jpeg I
>>>>>>>>>>>> tried to upload.
>>>>>>>>>>>>
>>>>>>>>>>>> H
>>>>>>>>>>>>
>>>>>>>>>>>> On Nov 10, 2012, at 4:37 AM, Alisdair Davey wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> A skinned version of the general photo upload form is now available at
>>>>>>>>>>>>>
>>>>>>>>>>>>> http://helio.cfa.harvard.edu/megamovie/upload_request.shtml
>>>>>>>>>>>>>
>>>>>>>>>>>>> I think all that is missing is some words of guidance and maybe some
>>>>>>>>>>>>> links to the main page etc.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Comments? Jon is working on a page that will allow us to browse uploaded
>>>>>>>>>>>>> photos too.
>>>>>>>>>>>>> Cheers
>>>>>>>>>>>>> A.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Alisdair Davey                                Phone: 617-272-5778
>>>>>>>>>>>>> Mail Stop #58,                          Email:ard at head.cfa.harvard.edu
>>>>>>>>>>>>> Harvard Smithsonian Center for Astrophysics
>>>>>>>>>>>>> Cambridge, MA 02155
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> EMP2012 mailing list
>>>>>>>>>>>>> EMP2012 at mailman.ucar.edu
>>>>>>>>>>>>> http://mailman.ucar.edu/mailman/listinfo/emp2012
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> EMP2012 mailing list
>>>>>>>>>>>> EMP2012 at mailman.ucar.edu
>>>>>>>>>>>> http://mailman.ucar.edu/mailman/listinfo/emp2012
>>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> EMP2012 mailing list
>>>>>>>>>>> EMP2012 at mailman.ucar.edu
>>>>>>>>>>> http://mailman.ucar.edu/mailman/listinfo/emp2012
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> EMP2012 mailing list
>>>>>>>>>> EMP2012 at mailman.ucar.edu
>>>>>>>>>> http://mailman.ucar.edu/mailman/listinfo/emp2012
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> EMP2012 mailing list
>>>>>>>>> EMP2012 at mailman.ucar.edu <mailto:EMP2012 at mailman.ucar.edu>
>>>>>>>>> http://mailman.ucar.edu/mailman/listinfo/emp2012
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> EMP2012 mailing list
>>>> EMP2012 at mailman.ucar.edu <mailto:EMP2012 at mailman.ucar.edu>
>>>> http://mailman.ucar.edu/mailman/listinfo/emp2012
>>>
>>>
>>>
>>> _______________________________________________
>>> EMP2012 mailing list
>>> EMP2012 at mailman.ucar.edu
>>> http://mailman.ucar.edu/mailman/listinfo/emp2012
>>
>> _______________________________________________
>> EMP2012 mailing list
>> EMP2012 at mailman.ucar.edu <mailto:EMP2012 at mailman.ucar.edu>
>> http://mailman.ucar.edu/mailman/listinfo/emp2012
>
>
>
> _______________________________________________
> EMP2012 mailing list
> EMP2012 at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/emp2012

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/emp2012/attachments/20121111/0a8b8ad7/attachment-0001.html 


More information about the EMP2012 mailing list