/    Sign up×
Community /Pin to ProfileBookmark

Receiving and Saving an Array of Jpegs

I’m currently working on a project which requires me to receive an array of jpeg files from flash (via AMFPHP) and save those images individually to a folder on my server. As a beginner to PHP, I’m just not sure how to start this process (I have all of the Actionscript code on the flash end). I’d be greatly obliged if someone could point me in the right direction.

Many thanks.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@ericatekkaMay 21.2012 — storing the files on the server might not be your best bet. Have you thought about maybe storing the files as BLOBS on the DB?
Copy linkTweet thisAlerts:
@NogDogMay 21.2012 — storing the files on the server might not be your best bet. Have you thought about maybe storing the files as BLOBS on the DB?[/QUOTE]

I normally recommend the opposite: store the files themselves on the file system (which is optimized for file access), and store any data you want to associate with them (including file path-name info) in the database (which is optimized for searching/sorting data).
Copy linkTweet thisAlerts:
@NogDogMay 21.2012 — As far as the original question goes, I'm not familiar with the client-side script you're using, but assuming it uses the usual HTTP post upload methods, take a look at: http://www.php.net/manual/en/features.file-upload.post-method.php
×

Success!

Help @dirk_22 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...