Questions tagged [pffile]
108 questions
0
votes
0 answers
Auto Saving a Photo in Parse
I'm building an app that requires the user to have a photo. What I'm trying to do is autosave the placeholder photo until they choose the camera/photo gallery and choose a pick. My problem is that it's not happening. I've used the code from the…

Charles Jr
- 8,333
- 15
- 53
- 74
0
votes
1 answer
Conditional cast from PFFile toPFFile always succeed
I get a warming of "Conditional cast from PFFile toPFFile always succeed" which highlighted if let tempProductPicture = self.askProductImageArray[0] as? PFFile. What is the best way to solve it? Thanks
var askProductImageArray = [PFFile]()
override…

Pak Ho Cheung
- 1,382
- 6
- 22
- 52
0
votes
1 answer
PFFile without PFObject - Parse
What happens to my PFFile if I save it and don't associate it with a PFObject?
Does it get lost in the limbo?
Do I have access to it somehow through the Parse dashboard?
Does it count towards my storage limit?
Will it get cleaned up by itself…

Rodrigo Ruiz
- 4,248
- 6
- 43
- 75
0
votes
1 answer
Parse PFFile Long Url
I want to send PFFile url in sms using twilio api, but the piffle url string is too long is there any way to shorten the piffle url ?
Thanks in advance

Attique
- 3
- 3
0
votes
0 answers
Predefined pffile url before saving
I want to save my files to aws and then use the URL of my Parse pffile to point to it. Is there a way to predefine a pffile's url before saving it? Is it as easy as just accessing the pffile.url property? I'm not sure on this because I know it…

ian
- 1,002
- 2
- 12
- 29
0
votes
2 answers
Parse Error Code 151
I have the following PFObject saved locally:
{
ACL = "";
image = "";
name = Anonymous;
}
I'm trying to run the following code to…
0
votes
0 answers
Update Image When Parse Query Done
I'm using Parse for my app written in Swift. It is a golf app that allows the user to have a profile. The user can edit the profile on an edit profile view controller, save it and then they're taken back to the main profile view controller. The…

dcotter
- 312
- 6
- 22
0
votes
3 answers
Parse PFFile Swift viewing text file
I can view pictures from Parse on UIImage but I can't view a .txt file stored onto Parse on a UIImage. I know if the document is larger than 10MB you must save it on the cloud. This .txt file is small. Please help.
var query =…

Mahmood Abdul
- 13
- 4
0
votes
1 answer
How to "properly" save PFFile in Swift and retrieve url
I am having a difficult time with Parse.com.
I save a PFFile through my app, using the following code... (truncated to relevant info.)
let alertXMLFile = PFObject(className: "Message")
do {
alertXMLFile["alertFile"] = try PFFile(name:…

Lamar
- 61
- 10
0
votes
2 answers
get image faster than file URL
I'm creating a stack of images in my viewdidload method. The images are from PFFile's from parse so they contain the fileURL of my image data.
My problem is that these two lines of code are dramatically slowing down my app and killing my user…

ian
- 1,002
- 2
- 12
- 29
0
votes
1 answer
PFFile as UIImageView
I'm using Parse and I have a class named "GolfScorecard" that has several keys including a "scorecardImage" key, which is a PFFile. I'm trying to get all of this golf scorecard info to display in a tableViewCell. I can get the rest of the scorecard…

dcotter
- 312
- 6
- 22
0
votes
1 answer
Retrieving video file stored as PFFile for ios application developed in swift
Have a parse class "Response", with one of the fields being of type File. Am uploading the files to this column for each row manually by selecting the cell and clicking "upload a file".
Now I need to get this file (which as I understand should be…

alish
- 1
- 2
0
votes
1 answer
Can a PFFile be stored/fetched from the local datastore if it is a property of a PFObject?
I've seen some rumors/opinions on this, but does anyone know definitively if a PFFile can be stored/fetched to the datastore if it is a property of a PFObject?
For example, I have a class which is a subclassed PFObject. Within the class, is a…

rswayz
- 1,122
- 2
- 10
- 21
0
votes
1 answer
PFFile crash when getting data from cache
Recently, after Parse SDK update, I start getting the following exception when loading files on startup:
2015-11-08 13:23:15.088 MyApp[7219:471946] [Error]: Caught "NSInvalidArgumentException" with reason "*** -[_NSPlaceholderData…

frangulyan
- 3,580
- 4
- 36
- 64
0
votes
0 answers
How do I fix this error"Could not cast value of type 'UIImageView' () to 'PFImageView' " to display images on query?
I'm trying to retrieve users profile pictures(File) from Parse onto my PFQueryTableViewController. The code I've written doesn't give me errors but every time I run my app crashes and says "Could not cast value of type UIImageView to PFImageView.…

Bachenenad
- 65
- 7